Open
Description
don't know the design choice here, why the underlying mounts var is not implemented as a dict?(performance issue? considering mount points are relatively small list. i think it's better to clarify in the source code.)
the following is my implementation for the current implementation.
def umount(self, path):
_path = forcedir(abspath(normpath(path)))
for mount_path, fs in self.mounts:
if _path.startswith(mount_path):
self.mounts.remove((mount_path,fs))
Metadata
Metadata
Assignees
Labels
No labels