|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdirChain(*paths)
(DEVELOPER API) Make one or more directories if they do not
already exist, including any needed parent directories. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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...)
genExcepthook (DEVELOPER API) |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
|
|
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
|
|
|
|
lstat(path)
Return None if the path doesn't exist. |
source code
|
|
|
|
_LazyFile_reopen(method)
Decorator to perform the housekeeping of opening/closing of
fds |
source code
|
|
|
|
|
|
|
|
|
|
urlSplit(url,
defaultPort=None)
A function to split a URL in the format
<scheme>://<user>:<pass>@<host>:<port>/<path>;<params>#<fragment>
into a tuple (<scheme>, <user>, <pass>,
<host>, <port>, <path>, <params>,
<fragment>) Any missing pieces (user/pass) will be set to
None. |
source code
|
|
|
|
urlUnsplit(urlTuple)
Recompose a split URL as returned by urlSplit into a single
string |
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
|
|
|
|
|
|
|
rethrow(newClassOrInstance,
prependClassName=True,
oldTup=None)
Re-throw an exception, either from sys.exc_info()
(the default) or from oldTup (when set). |
source code
|
|