Commit d2088a50 by rfkelly0

MemoryFS: makedir("",allow_recreate=True) should succeed

parent 8c6577e1
...@@ -255,7 +255,7 @@ class MemoryFS(FS): ...@@ -255,7 +255,7 @@ class MemoryFS(FS):
@synchronize @synchronize
def makedir(self, dirname, recursive=False, allow_recreate=False): def makedir(self, dirname, recursive=False, allow_recreate=False):
if not dirname: if not dirname and not allow_recreate:
raise PathError(dirname) raise PathError(dirname)
fullpath = dirname fullpath = dirname
dirpath, dirname = pathsplit(dirname) dirpath, dirname = pathsplit(dirname)
......
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