FileStatus

class cpip.util.FileStatus.FileInfo(thePath)

Holds information on a text file.

count

Files processed.

size

Size in bytes.

sloc

Lines in file.

write(theS=<open file '<stdout>', mode 'w' at 0x102105150>, incHash=True)

Writes the number of lines and bytes (optionally MD5) to stream.

writeHeader(theS=<open file '<stdout>', mode 'w' at 0x102105150>)

Writes header to stream.

class cpip.util.FileStatus.FileInfoSet(thePath, glob=None, isRecursive=False)

Contains information on a set of files.

processDir(theDir, glob, isRecursive)

Read a directory and return a map of {path : class FileInfo, ...}

processPath(theP, glob=None, isRecursive=False)

Process a file or directory.

write(theS=<open file '<stdout>', mode 'w' at 0x102105150>)

Write summary to stream.

Previous topic

DupeLines

Next topic

HtmlUtils

This Page