Add extra mounts update
parent
3b19b2014a
commit
ad021122a9
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue