TotalDepth.util.FileStatus

Created on 28 Jun 2010

exception TotalDepth.util.FileStatus.ExceptionFileStatus
__weakref__

list of weak references to the object (if defined)

class TotalDepth.util.FileStatus.FileInfo(thePath)

Obtains the status of a file, hash SLOC etc.

__init__(thePath)

Initialize self. See help(type(self)) for accurate signature.

writeHeader(theS=<colorama.ansitowin32.StreamWrapper object>)

Write the summary header.

write(theS=<colorama.ansitowin32.StreamWrapper object>, incHash=True)

Write the summary.

sloc

SLOC

size

Size in bytes.

count

Number of files, 0 or 1.

__weakref__

list of weak references to the object (if defined)

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

Represents a set of files from a directory tree.

__init__(thePath, glob=None, isRecursive=False, isTestOnly=False)

Initialize self. See help(type(self)) for accurate signature.

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

Process a file or directory.

processDir(theDir, glob, isRecursive, isTestOnly)

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

write(theS=<colorama.ansitowin32.StreamWrapper object>)

Write out the summary.

__weakref__

list of weak references to the object (if defined)

TotalDepth.util.FileStatus.main()

Process a path and write out the file summary.