adrianlopezroche / fdupes

FDUPES is a program for identifying or deleting duplicate files residing within specified directories.
2.48k stars 186 forks source link

Add human readable size option #124

Open Blatinox opened 5 years ago

Blatinox commented 5 years ago

With size option, fdupes shows size of duplicate files in bytes which is not always easy to read for a human. This new human-size option reports sizes in a more readable format (B, KiB, MiB,...).

This implements #78.

Blatinox commented 5 years ago

Using -t as option is an arbitrary decision. The most logical letters s and h are already taken: -s for symlinks option, -S for size, -h for help and -H for hardlinks option. I choose t because it is the first letter after s. I'm open to a better choice.

Blatinox commented 4 years ago

I rebased my branch to resolve conflicts. The human size option is now -T (it still an arbitrary choice).

@adrianlopezroche : what do you think about this PR ?