Commit a0a0b8e4 by rfkelly0

fs.expose.dokan: normalise drive string passed into dokan.unmount

parent e7b412f9
...@@ -950,6 +950,7 @@ def unmount(drive): ...@@ -950,6 +950,7 @@ def unmount(drive):
It works but may leave dangling processes; its better to use the "unmount" It works but may leave dangling processes; its better to use the "unmount"
method on the MountProcess class if you have one. method on the MountProcess class if you have one.
""" """
drive = _normalise_drive_string(drive)
if not libdokan.DokanUnmount(drive): if not libdokan.DokanUnmount(drive):
raise OSError("filesystem could not be unmounted: %s" % (drive,)) raise OSError("filesystem could not be unmounted: %s" % (drive,))
......
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