Another removal of removedir("/")

parent 6efaa944
...@@ -1060,6 +1060,7 @@ if __name__ == "__main__": ...@@ -1060,6 +1060,7 @@ if __name__ == "__main__":
import tempfile import tempfile
from fs.osfs import OSFS from fs.osfs import OSFS
from fs.memoryfs import MemoryFS from fs.memoryfs import MemoryFS
from shutil import rmtree
path = tempfile.mkdtemp() path = tempfile.mkdtemp()
try: try:
fs = OSFS(path) fs = OSFS(path)
...@@ -1069,6 +1070,6 @@ if __name__ == "__main__": ...@@ -1069,6 +1070,6 @@ if __name__ == "__main__":
mount(fs, "Q", foreground=True, numthreads=1, flags=flags) mount(fs, "Q", foreground=True, numthreads=1, flags=flags)
fs.close() fs.close()
finally: finally:
OSFS(path).removedir("/",force=True) rmtree(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