A codec for safe filenames.
Project description
Introduction
The codec safename is meant to rename files to safe filenames. These safe filenames have the following properties:
The safe filenames are valid on most filesystems.
The safe filenames can be restored to the original filenames.
The safe filenames are more or less readable.
Examples:
Input |
Output |
---|---|
Spam |
{s}pam |
SPAM |
{spam} |
spam eggs |
spam_eggs |
spàm |
sp(e0)m |
The script safename will rename a list of files, by applying the codec safename to the current filenames.
Usage
safename [-d|--decode] [-t|--test] [-v|--verbose] [FILE ...] safename [-e|--encode] [-t|--test] [-v|--verbose] [FILE ...]
-d –decode Decode the safe filenames for the given files.
-e –encode Encode to safe filenames for the given files.
-t –test Don’t rename the files.
-v –verbose Print out every renaming operation.
Remarks
Based on the module safefilename from Torsten Bronger’s Bobcat Project.
Contributors
Bert Vanderbauwhede, Author
Changelog
0.1 (2013-07-14)
Package created using templer [Bert Vanderbauwhede]
First implementation [Bert Vanderbauwhede]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.