file_system_utils v0.1.0 FileSystemUtils.ListDevices View Source
Provides functions to get information about devices available in the system.
Link to this section Summary
Functions
List all the mountable devices in the system
Lists all devices that have a label
lsblk - list block devices
Gives json objects that provides information on only the scsi devices
Link to this section Functions
Link to this function
list_devices(full_path \\ false)
View Source
list_devices(Boolean) :: [binary()]
List all the mountable devices in the system.
Arguments
- full_path (default = false)
- false: Return list of device names.
- true : Returns list of paths to device.
Link to this function
list_devices_with_label(full_path \\ false)
View Source
list_devices_with_label(Boolean) :: [binary()]
Lists all devices that have a label
Arguments
- full_path (default = false)
- false: Return list of device names.
- true : Returns list of paths to device.
lsblk - list block devices
returns the output of the lsblk command line utilty as json object.
Arguments
- devices (default = "") If device(s) is passed as argument, information is only retrieved for those.
Gives json objects that provides information on only the scsi devices
Arguments
- devices (default = "") If device(s) is passed as argument, information is only retrieved for those.