.. note::
- This function uses the passwd database and thus
- only works on scripts servers when querying directories
- that live on AFS.
+ When querying AFS servers, this function only works if
+ you're on a Scripts server (which has the correct passwd
+ database) or if you're on a Debathena machine.
"""
uid = get_dir_uid(dir)
try:
pass
def makedirs(path):
- """Create a directory path (a la mkdir -p or os.makedirs),
- but don't complain if it already exists."""
+ """
+ Create a directory path (a la ``mkdir -p`` or ``os.makedirs``),
+ but don't complain if it already exists.
+ """
try:
os.makedirs(path)
- except OSError as exc: # Python >2.5
+ except OSError as exc:
if exc.errno == errno.EEXIST:
pass
- else: raise
+ else:
+ raise
def fetch(host, path, subpath, post=None):
try: