Revision b73360e3 lib/utils.py
b/lib/utils.py | ||
---|---|---|
1388 | 1388 |
if err.errno != errno.EEXIST: |
1389 | 1389 |
raise errors.GenericError("Cannot create needed directory" |
1390 | 1390 |
" '%s': %s" % (dir_name, err)) |
1391 |
try: |
|
1392 |
os.chmod(dir_name, dir_mode) |
|
1393 |
except EnvironmentError, err: |
|
1394 |
raise errors.GenericError("Cannot change directory permissions on" |
|
1395 |
" '%s': %s" % (dir_name, err)) |
|
1391 | 1396 |
if not os.path.isdir(dir_name): |
1392 | 1397 |
raise errors.GenericError("%s is not a directory" % dir_name) |
1393 | 1398 |
|
Also available in: Unified diff