Skip to main content

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.

Source Distribution

fnord.safename-0.1.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

fnord.safename-0.1-py2.7.egg (9.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page