Commit 828bb568 by rfkelly0

added conversion logic for ParentDirectoryMissing => ESRCH on win32

parent 7144749e
......@@ -166,6 +166,11 @@ def convert_fs_errors(func):
return func(*args,**kwds)
except ResourceNotFoundError, e:
raise OSError(errno.ENOENT,str(e))
except ParentDirectoryMissingError, e:
if sys.platform == "win32":
raise OSError(errno.ESRCH,str(e))
else:
raise OSError(errno.ENOENT,str(e))
except ResourceInvalidError, e:
raise OSError(errno.EINVAL,str(e))
except PermissionDeniedError, e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment