Commit c30cbe13 by willmcgugan

Fix to allow create=True in OSFS constructor to work if the directory currently exists

parent 5242a35d
......@@ -99,7 +99,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
if create:
try:
_os_makedirs(root_path, mode=dir_mode)
except OSError:
except (OSError, DestinationExistsError):
pass
if not os.path.exists(root_path):
......
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