Lines 852-858
Link Here
|
852 |
created_dir = True |
852 |
created_dir = True |
853 |
except OSError, oe: |
853 |
except OSError, oe: |
854 |
func_call = "makedirs('%s')" % dir_path |
854 |
func_call = "makedirs('%s')" % dir_path |
855 |
if errno.EEXIST == oe.errno: |
855 |
if oe.errno in (errno.EEXIST, errno.EISDIR): |
856 |
pass |
856 |
pass |
857 |
elif oe.errno == errno.EPERM: |
857 |
elif oe.errno == errno.EPERM: |
858 |
raise OperationNotPermitted(func_call) |
858 |
raise OperationNotPermitted(func_call) |