adrianlopezroche / fdupes

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

Add flag to ignore inode changes in removeifnotchanged #192

Open dnadle opened 1 month ago

dnadle commented 1 month ago

This commit adds a command line option (-e or --noinodes) to allow fdupes to remove duplicates even if the inode changes between calls to stat(). The following comment added to README explains:

Some remote-mounted filesystems (e.g. gvfs-smb) generate inodes in the client instead of sending server inode values. With a large number of files or client cache activity, inodes can change even though the file has not changed or moved. Using -e or --noinodes allows fdupes to delete files where the device, creation and modification times, and size has not changed during processing, ignoring any inode change.