RAGS - v1.10.0
    Preparing search index...

    Function diskUsage

    • Returns disk usage as a fraction between 0 and 1 for the given mount point.

      Uses GIO's query_filesystem_info for a portable implementation.

      Parameters

      • mount: string = '/'

        Mount point path (defaults to '/')

      Returns number

      Disk usage ratio (0–1), or -1 if unavailable