Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Functions | |
def | stat |
def | reset |
def | forget |
def | forget_prefix |
def | forget_dir |
def | forget_except_prefix |
def | isdir |
Variables | |
list | __all__ |
dictionary | cache = {} |
Maintain a cache of stat() information on files. There are functions to reset the cache or to selectively remove items.
def statcache.forget | ( | path) |
Remove a given item from the cache, if it exists.
Definition at line 31 of file statcache.py.
def statcache.forget_dir | ( | prefix) |
Forget a directory and all entries except for entries in subdirs.
Definition at line 44 of file statcache.py.
References forget(), dospath.join(), and dospath.split().
def statcache.forget_except_prefix | ( | prefix) |
Remove all pathnames except with a given prefix. Normally used with prefix = '/' after a chdir().
Definition at line 61 of file statcache.py.
References forget().
def statcache.forget_prefix | ( | prefix) |
Remove all pathnames with a given prefix.
Definition at line 38 of file statcache.py.
References forget().
def statcache.isdir | ( | path) |
Return 1 if directory, else 0.
Definition at line 71 of file statcache.py.
References stat.S_ISDIR().
def statcache.reset | ( | ) |
Clear the cache.
Definition at line 26 of file statcache.py.
def statcache.stat | ( | path) |
Stat a file, possibly out of the cache.
Definition at line 19 of file statcache.py.
list __all__ |
Definition at line 9 of file statcache.py.
dictionary cache = {} |
Definition at line 17 of file statcache.py.