You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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))
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: