Module ensure_dirs
source code
Script to ensure permissions on files/dirs are accurate.
|
|
|
|
|
|
|
GetPaths()
Returns a tuple of path objects to process. |
source code
|
|
|
|
|
|
|
ALL_TYPES = compat.UniqueFrozenset([DIR, FILE, QUEUE_DIR,])
|
Imports:
os,
optparse,
sys,
logging,
constants,
errors,
runtime,
ssconf,
utils,
cli,
pathutils,
compat
RecursiveEnsure(path,
uid,
gid,
dir_perm,
file_perm)
| source code
|
Ensures permissions recursively down a directory.
This functions walks the path and sets permissions accordingly.
- Parameters:
path - The absolute path to walk
uid - The uid used as owner
gid - The gid used as group
dir_perm - The permission bits set for directories
file_perm - The permission bits set for files
|
Sets the correct permissions on all job files in the queue.
- Parameters:
path - Directory path
mode - Wanted file mode
uid - Wanted user ID
gid - Wanted group ID
|
Processes a path component.
- Parameters:
path - A tuple of the path component to process
|
Parses the options passed to the program.
- Returns:
- Options and arguments
|