Original issue 79 created by pixelb on 2012-04-26T20:45:43.000Z:
What steps will reproduce the problem?
make a test directory, e.g. mkdir ./testdir
put duplicate files in the directory, two or more should be named with a space as their last filename character, e.g.:
a. echo "foo" > './testdir/foo'
b. cp ./testdir/foo './testdir/foo '
c. cp ./testdir/foo './testdir/spacefile '
d. cp ./testdir/foo './testdir/tfile '
cd testdir ; findup -d
This should delete all duplicate files, save one.
Instead you get something like:
[Errno 2] No such file or directory: 'spacefile'
[Errno 2] No such file or directory: 'tfile'
Note that the files are actually 'spacefile ' and 'tfile '
(spaces at the end of their names)
only 'foo' was deleted, 'foo ', 'spacefile ', and 'tfile ' all remain.
Original issue 79 created by pixelb on 2012-04-26T20:45:43.000Z:
What steps will reproduce the problem?
This should delete all duplicate files, save one. Instead you get something like: [Errno 2] No such file or directory: 'spacefile' [Errno 2] No such file or directory: 'tfile'
Note that the files are actually 'spacefile ' and 'tfile ' (spaces at the end of their names)
only 'foo' was deleted, 'foo ', 'spacefile ', and 'tfile ' all remain.
fslint 2.42-1 on CentOS, ext4 filesystem