From ad021122a98a82e453f6c2af2afaa92888c7b654 Mon Sep 17 00:00:00 2001 From: Vadim Troshchinskiy Date: Mon, 16 Dec 2024 13:05:25 +0100 Subject: [PATCH] Add extra mounts update --- gitlib/filesystem.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitlib/filesystem.py b/gitlib/filesystem.py index 3a96bd8..de8f22f 100644 --- a/gitlib/filesystem.py +++ b/gitlib/filesystem.py @@ -4,6 +4,7 @@ import subprocess import os import json import blkid +import time from ntfs import * @@ -112,6 +113,7 @@ class FilesystemLibrary: str or None: The device corresponding to the mount point if found, otherwise None. """ + self.update_mounts() self.logger.debug("Finding device corresponding to mount point %s", mountpoint) if mountpoint in self.mounts: return self.mounts[mountpoint]['device']