fix(core): detection of mounted drives
This commit is contained in:
@@ -100,7 +100,10 @@ def scan_drives() -> List[DriveInfo]:
|
|||||||
path = f"/dev/{name}"
|
path = f"/dev/{name}"
|
||||||
|
|
||||||
# Check if mounted
|
# Check if mounted
|
||||||
is_mounted = path in mounted_devices or name in mounted_devices
|
is_mounted = False
|
||||||
|
#is_mounted = path in mounted_devices or name in mounted_devices
|
||||||
|
for md in mounted_devices:
|
||||||
|
is_mounted |= path in md
|
||||||
|
|
||||||
drive = DriveInfo(
|
drive = DriveInfo(
|
||||||
name=name,
|
name=name,
|
||||||
|
|||||||
Reference in New Issue
Block a user