Skip snap mounts in disk space detector
Filter out /snap/* and /boot/efi from disk monitoring on Linux. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,6 +48,9 @@ def get_all_drives():
|
|||||||
# Skip virtual filesystems
|
# Skip virtual filesystems
|
||||||
if not device.startswith("/dev/"):
|
if not device.startswith("/dev/"):
|
||||||
continue
|
continue
|
||||||
|
# Skip snap mounts and other system paths
|
||||||
|
if mount.startswith(("/snap/", "/boot/efi")):
|
||||||
|
continue
|
||||||
# Skip duplicate devices (e.g., bind mounts)
|
# Skip duplicate devices (e.g., bind mounts)
|
||||||
if device in seen_devices:
|
if device in seen_devices:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user