Return information about all currently mounted filesystem volumes.
Returns an object keyed by the volume mount path. Each value contains:
name
isLocal
true
isInternal
isEjectable
isRemovable
isBrowsable
isReadOnly
isRootFileSystem
/
totalCapacity
availableCapacity
uuid
Pass true to include hidden volumes. Defaults to false.
false
Object keyed by mount path, or null on failure.
null
Return information about all currently mounted filesystem volumes.
Returns an object keyed by the volume mount path. Each value contains:
name— Localised display name of the volume.isLocal—trueif the volume is locally connected.isInternal—trueif the volume resides on internal storage.isEjectable—trueif the volume can be ejected.isRemovable—trueif the volume resides on removable media.isBrowsable—trueif the volume can be browsed by the user.isReadOnly—trueif the volume is mounted read-only.isRootFileSystem—trueif this is the root filesystem (/).totalCapacity— Total size in bytes.availableCapacity— Available space in bytes.uuid— Volume UUID string (if available).