diff --git a/gitlib/gitlib.py b/gitlib/gitlib.py index 205b856..84f5ab0 100755 --- a/gitlib/gitlib.py +++ b/gitlib/gitlib.py @@ -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: