statcache
index
/usr/lib/python2.1/statcache.py

Maintain a cache of stat() information on files.
 
There are functions to reset the cache or to selectively remove items.

 
Modules
            
os

 
Functions
            
forget(path)
Remove a given item from the cache, if it exists.
forget_dir(prefix)
Forget a directory and all entries except for entries in subdirs.
forget_except_prefix(prefix)
Remove all pathnames except with a given prefix.
 
Normally used with prefix = '/' after a chdir().
forget_prefix(prefix)
Remove all pathnames with a given prefix.
isdir(path)
Return 1 if directory, else 0.
reset()
Clear the cache.
stat(path)
Stat a file, possibly out of the cache.

 
Data
             ST_ATIME = 7
ST_CTIME = 9
ST_DEV = 2
ST_GID = 5
ST_INO = 1
ST_MODE = 0
ST_MTIME = 8
ST_NLINK = 3
ST_SIZE = 6
ST_UID = 4
S_ENFMT = 1024
S_IEXEC = 64
S_IFBLK = 24576
S_IFCHR = 8192
S_IFDIR = 16384
S_IFIFO = 4096
S_IFLNK = 40960
S_IFREG = 32768
S_IFSOCK = 49152
S_IREAD = 256
S_IRGRP = 32
S_IROTH = 4
S_IRUSR = 256
S_IRWXG = 56
S_IRWXO = 7
S_IRWXU = 448
S_ISGID = 1024
S_ISUID = 2048
S_ISVTX = 512
S_IWGRP = 16
S_IWOTH = 2
S_IWRITE = 128
S_IWUSR = 128
S_IXGRP = 8
S_IXOTH = 1
S_IXUSR = 64
__all__ = ['stat', 'reset', 'forget', 'forget_prefix', 'forget_dir', 'forget_except_prefix', 'isdir']
__file__ = '/usr/lib/python2.1/statcache.pyc'
__name__ = 'statcache'
cache = {}