Add extra mounts update

main
Vadim vtroshchinskiy 2024-12-16 13:05:25 +01:00
parent 9f6b7e25f9
commit 6e09f5095e
1 changed files with 2 additions and 0 deletions

View File

@ -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']