The library manager is a static class used to access and manage Toxik
and regular files on the filesystem. For Toxik files, it provides some
mechanisms to help preserve the integrity of Toxik data. For example, the
function remove() will prevent deleting a composition if it is in
use.
|
|
copyComponent(...)
Copy the contents of the file named pathSrc to a file named
pathDst. |
|
|
bool
|
exists(...)
Returns:
True if path refers to an existing Toxik
component. |
|
|
str
|
|
str
|
getSetting(...)
Returns:
The component's setting value for the specified setting group and
key. |
|
|
[str]
|
getSettingGroups(...)
Returns:
The list of setting groups on the specified component. |
|
|
dict
|
getSettings(...)
Returns:
The component's settings for the specified setting group, as a
dict of setting keys to setting values. |
|
|
tuple
|
getStat(...)
Returns:
A tuple of component attributes: |
|
|
|
|
|
bool
|
hasSetting(...)
Returns:
True if the component has a value set for the specified
setting group and key. |
|
|
bool
|
isComposition(...)
Returns:
True if path is an existing composition. |
|
|
bool
|
isFolder(...)
Returns:
True if path is an existing folder. |
|
|
bool
|
isLocked(...)
Returns:
True if the specified file is locked by any Toxik
process. |
|
|
bool
|
isValidComponentName(...)
Returns:
A bool indicating whether the given string is a valid
component name. |
|
|
[str]
|
listFolder(...)
Returns:
A list containing the names of the files in the
specified folder path. |
|
|
|
|
makeFolder(...)
Creates a folder at the location specified by path. |
|
|
|
|
makeFolders(...)
Recursive directory creation function. |
|
|
|
|
makeSetup(...)
Creates a simple setup component that can store a data string. |
|
|
|
|
remove(...)
Removes the file at location path. |
|
|
|
|
|
|
|
removeSettingGroup(...)
Removes the specified setting group (and all the settings in that
group) from the specified component. |
|
|
|
|
removeTree(...)
Removes the folder named path and its contents. |
|
|
|
|
rename(...)
Renames the file or folder pathSrc to pathDst. |
|
|
str
|
|
|
|
|
|
|
setSetting(...)
Sets the component's setting value for the specified setting group
and key. |
|
|
|
|
toXml(...)
Generically converts the object pointed to by the given path to XML. |
|
|
|
|
walk(self,
top,
topDown=True,
onError=None)
Library folder tree generator. |
|
|