Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | __repr__ |
def | error |
def | getprofile |
def | getpath |
def | getcontext |
def | setcontext |
def | listfolders |
def | listsubfolders |
def | listallfolders |
def | listallsubfolders |
def | openfolder |
def | makefolder |
def | deletefolder |
Data Fields | |
profile | |
path | |
Class representing a particular collection of folders. Optional constructor arguments are the pathname for the directory containing the collection, and the MH profile to use. If either is omitted or empty a default is used; the default directory is taken from the MH profile if it is specified there.
def deletefolder | ( | self, | |
name | |||
) |
Delete a folder. This removes files in the folder but not subdirectories. Raise os.error if deleting the folder itself fails.
Definition at line 223 of file mhlib.py.
References MH.error(), and MH.getpath().
def error | ( | self, | |
msg, | |||
args | |||
) |
def getcontext | ( | self) |
Return the name of the current folder.
Definition at line 127 of file mhlib.py.
References MH.getpath(), and mhlib.pickline().
def getpath | ( | self) |
def getprofile | ( | self, | |
key | |||
) |
Return a profile entry, None if not found.
Definition at line 119 of file mhlib.py.
References mhlib.pickline(), and MH.profile.
def listallfolders | ( | self) |
Return the names of all folders and subfolders, recursively.
Definition at line 177 of file mhlib.py.
References MH.listallsubfolders().
def listallsubfolders | ( | self, | |
name | |||
) |
Return the names of subfolders in a given folder, recursively.
Definition at line 181 of file mhlib.py.
References mhlib.isnumeric(), MH.listallsubfolders(), and MH.path.
def listfolders | ( | self) |
Return the names of the top-level folders.
Definition at line 141 of file mhlib.py.
References MH.getpath().
def listsubfolders | ( | self, | |
name | |||
) |
def makefolder | ( | self, | |
name | |||
) |
Create a new folder (or raise os.error if it cannot be created).
Definition at line 214 of file mhlib.py.
References MH.getpath(), mhlib.isnumeric(), mhlib.pickline(), and MH.profile.
def openfolder | ( | self, | |
name | |||
) |
def setcontext | ( | self, | |
context | |||
) |
Set the name of the current folder.
Definition at line 134 of file mhlib.py.
References MH.getpath(), and aifc.open().