|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
recurseDirectoryList(topdir,
withDirs=False)
Recursively list all files in the directory |
source code
|
|
|
|
|
|
|
genExcepthook(debug=True,
debugCtrlC=False,
prefix='conary-error-',
catchSIGUSR1=True,
error='\nERROR: An unexpected condition has occurred in Conary. Thi...) |
source code
|
|
|
|
|
|
|
execute(cmd,
destDir=None,
verbose=True)
similar to os.system, but raises errors if exit code != 0 and
closes stdin so processes can never block on user input |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| rmtree(paths,
ignore_errors=False,
onerror=None) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| copyfileobj(source,
dest,
callback=None,
digest=None,
abortCheck=None,
bufSize=131072,
rateLimit=None,
sizeLimit=None,
total=0) |
source code
|
|
|
|
|
|
|
|
|
|
copytree(sources,
dest,
symlinks=False,
filemode=None,
dirmode=None)
Copies tree(s) from sources to dest, returning a list of the
filenames that it has written. |
source code
|
|
|
|
checkPath(binary,
root=None)
Examine $PATH to determine if a binary exists, returns full
pathname if it exists; otherwise None. |
source code
|
|
|
|
|
|
|
|
|
|
splitPath(path)
Split the path at the operating system's separators Empty path
components are stripped out Example: 'a//b//c/d' -> ['a', 'b',
'c', 'd'] |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkstemp(suffix='',
prefix='tmp',
dir=None,
text=False)
a wrapper for tempfile.mkstemp that uses a common prefix which is
set through settempdir() |
source code
|
|
|
|
verFormat(cfg,
version)
Format the version according to the options in the cfg object |
source code
|
|
|
|
lstat(path)
Return None if the path doesn't exist. |
source code
|
|
|
|
|
|
|
| formatTrace(excType,
excValue,
tb,
stream=sys.stdout,
withLocals=True) |
source code
|
|
|
|
|
|
|
| xmlrpcDump(params,
methodname=None,
methodresponse=None,
stream=None,
encoding=None,
allow_none=False) |
source code
|
|
|
|
|
|
|
copyStream(src,
dest,
length=None,
bufferSize=16384)
Copy from one stream to another, up to a specified length |
source code
|
|
|
|
|
|
|
| compressStream(src,
level=5,
bufferSize=16384) |
source code
|
|
|
|
massCloseFileDescriptors(start,
unusedCount)
Close all file descriptors starting with start, until we hit
unusedCount consecutive file descriptors that were already closed |
source code
|
|
|
|
nullifyFileDescriptor(fdesc)
Connects the file descriptor to /dev/null or an open file (if
/dev/null does not exist) |
source code
|
|
|
None
|
sendmsg(sock,
dataList,
fdList=[])
Sends multiple strings and an optional list of file descriptors
through a unix domain socket. |
source code
|
|
|
tuple
|
recvmsg(sock,
dataSize,
fdCount=0)
Receives data and optional file descriptors from a unix domain
socket. |
source code
|
|
|
|
countOpenFileDescriptors()
Return the number of open file descriptors for this process. |
source code
|
|
|
|
|