This script yields the atoms contained in an MP4 file. Mostly is used for extracting the tags contained in it (artist, title etc) using a convenience class (M4ATags). This script could be implemented as an generator. ...
Generic file processor method script helps you to manage files. Old LineReader class was thrown to /dev/null - fd will really be exhausted during each call of process(), so a simple method is enough. ...
This script has the following action: if the specified file exists, it is versioned by appending to the extension a three-digit number, starting with "000".It's pomp;quot;0ake backups of files before you mangle them. A standard way of doing so is to appending to the extension an incremented number. The optional second ...
Files existing on damaged media (eg old CD-ROMs) are not completely lost. Often, readers will read sectors unreadable in other readers.The "trick" shown by this script is to merge the successful reads from several devices. ...
This script contains a function that creates missing directories for a given path and returns a normalized absolute version of the path.If the given path already exists in the filesystem the filesystem is not modified.Otherwise makepath creates directories along the given path using the dirname() of the path. You may append a ...
This script contains a class that enables a client to securely update an existing file, including the ability to make an automated backup version.This code encapsulates the method to safely update files in-place, by first writing to a temporary file and finally renaming the new temporary file to the old filename. This ...
This script returns a relative path to the target from either the current directory or an optional base directory. Base can be a directory specified either as absolute or relative to current directory. ...
This script is a memory-based directory copier and paster. Pickled Directory objects will contain all data from a directory at path and can be saved in other locations.Once a Directory object has been created, pasting it to another location is ex has beenimple. ...
This script search and replace files in a directory, recursively. File name and search string can be a regular expression.Execution can be simulated, step by step, and are always shown changed files/lines. ...