sahib / rmlint

Extremely fast tool to remove duplicates and other lint from your filesystem
http://rmlint.rtfd.org
GNU General Public License v3.0
1.85k stars 128 forks source link

keep dir timestamps only works on remove handler #665

Open MAProsper opened 1 month ago

MAProsper commented 1 month ago

When the generated sh script is executed with the "keep dir timestamps" option, they are only kept when using the remove_cmd function. All the cp_... variants, such as cp_symlink, cp_hardlink and cp_reflink, lose the directory timestamp.

To fix this the same pre- and post- DO_KEEP_DIR_TIMESTAMPS checks need to be added to the functions surrounding the modification commands.