Fix ticket #770: Re-parse filesystems list after mounting
parent
ce662e07bd
commit
284e760e5a
|
@ -122,6 +122,7 @@ class NTFSLibrary:
|
|||
|
||||
subprocess.run(["/usr/sbin/mkntfs", device, "-Q", "-L", label])
|
||||
|
||||
|
||||
def mount_filesystem(self, device, mountpoint):
|
||||
"""
|
||||
Mounts a filesystem on the specified mountpoint using the specified NTFS implementation.
|
||||
|
@ -142,6 +143,11 @@ class NTFSLibrary:
|
|||
else:
|
||||
raise ValueError("Unknown NTFS implementation: {self.implementation}")
|
||||
|
||||
|
||||
# We've mounted a new filesystem, update our filesystems list
|
||||
self.mounts = self._parse_mounts()
|
||||
|
||||
|
||||
def _hex_to_bin(self, hex_str):
|
||||
|
||||
while len(hex_str) != 16:
|
||||
|
|
Loading…
Reference in New Issue