Rename helper
rename helper by KeyJ (Martin Fiedler) is a Python script that helps in replicating file rename operations across machines
Example: Alice has a directory containing some files. It gives a copy of these files to Bob. Afterwards, she renames the files to follow a different nomenclature. Bob wants to have these new file names, too, but he doesn't want to copy the files again. So, what Alice does is:
- %prog -R $directory >list.txt
She then sends list.txt to Bob, who does:
- %prog -l list.txt -R $directory
to rename his copies of the files to the new names.
Technically this works by generating a list file that contains the new name (encoded in platform-neutral UTF-8) and a hash of each file's size as well as samples from the beginning, mid and end of the data. It's not a full data hash, but enough to work in 99.9% of all situations.
Superseded by dirpatch