jvirkki / dupd

CLI utility to find duplicate files
http://www.virkki.com/dupd
GNU General Public License v3.0
114 stars 16 forks source link

Empty files are listed by the interactive list commands ls,dups,uniques #47

Closed jvirkki closed 1 year ago

jvirkki commented 1 year ago

When scanning, dupd ignores zero-length files (because they are all technically duplicates but not very interesting since that's always the case). Note that the -m option may be used to set the size ignore limit higher, but the default is 1.

However, the interactive list comands (ls, dups, uniques) do show empty files which is inconsistent and can be confusing.

A simple test case using dupd 1.7 release:

% mkdir test
% cd test
% touch empty
% dupd scan --uniques
Files:        1                           0 errors                         0 ms

Total duplicates: 0 files in 0 groups in      853 ms

% dupd report

Total used: 0 bytes (0 KiB, 0 MiB, 0 GiB)

% dupd uniques
/tmp/test/empty
jvirkki commented 1 year ago

Fixed in 1.7.3