Skip to main content

Module drive

Module drive 

Source

Structs§

ConnectedDrive

Functions§

find_mounted_drive
Poll currently mounted drives and return the mount point of the first drive that matches the stored DriveId (by label OR uuid). Called in watch mode for cross-drive pairs.
get_drive_id
Given a path, detect the drive it lives on and return its DriveId. Returns None if the drive cannot be identified (e.g. network share).
list_connected_drives
List all currently connected drives on the system.
same_drive
Returns true if both paths live on the same physical drive / mount point. Used on init to decide whether drive_id should be stored.