Trees | Indices | Help |
---|
|
|
|||
AbstractScanner This class implements all the required infrastructure for filescanning. |
|||
FileScanner Scans the filesystem for files that match the selection paths. |
|||
LockFailedException | |||
Lock |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
LOGGER = logging.getLogger('fileutils')
|
|||
LOGGER_LOCK = logging.getLogger('fileutils.lock')
|
|||
ENCODING_MATRIX = {codecs.BOM_UTF8: 'utf_8', codecs.BOM_UTF16:
|
|
Recursively move a file or directory to another location. If the destination is on our current filesystem, then simply use rename. Otherwise, copy src to the dst and then remove src. A lot more could be done here... A look at a mv.c shows a lot of the issues this implementation glosses over. |
|
|
Given a byte string, guess the encoding. First it tries for UTF8/UTF16 BOM. Next it tries the standard 'UTF8', 'ISO-8859-1', and 'cp1252' encodings, Plus several gathered from locale information. The calling program must first call locale.setlocale(locale.LC_ALL, '') If successful it returns (decoded_unicode, successful_encoding) If unsuccessful it raises a UnicodeError. This was taken from http://www.voidspace.org.uk/python/articles/guessing_encoding.shtml |
|
|
ENCODING_MATRIX
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:16 2009 | http://epydoc.sourceforge.net |