hammerspoon2-docs
    Preparing search index...

    Function volumes

    • 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 — true if the volume is locally connected.
      • isInternal — true if the volume resides on internal storage.
      • isEjectable — true if the volume can be ejected.
      • isRemovable — true if the volume resides on removable media.
      • isBrowsable — true if the volume can be browsed by the user.
      • isReadOnly — true if the volume is mounted read-only.
      • isRootFileSystem — true if this is the root filesystem (/).
      • totalCapacity — Total size in bytes.
      • availableCapacity — Available space in bytes.
      • uuid — Volume UUID string (if available).

      Parameters

      • showHidden: boolean

        Pass true to include hidden volumes. Defaults to false.

      Returns Record<string, any> | null

      Object keyed by mount path, or null on failure.