Script to ensure permissions on files/dirs are accurate.
|
EnsurePermission(path,
mode,
uid=-1,
gid=-1,
must_exist=True,
_chmod_fn=os.chmod,
_chown_fn=os.chown,
_stat_fn=os.stat)
Ensures that given path has given mode. |
source code
|
|
|
EnsureDir(path,
mode,
uid,
gid,
_lstat_fn=os.lstat,
_mkdir_fn=os.mkdir,
_ensure_fn=EnsurePermission)
Ensures that given path is a dir and has given mode, uid and gid set. |
source code
|
|
|
|
|
|
|
|
|
GetPaths()
Returns a tuple of path objects to process. |
source code
|
|
|
SetupLogging(opts)
Configures the logging module. |
source code
|
|
|
|
|
|