Function

GioUnix-2.0GioUnixmounts_get_from_fileDeprecated 2.84Since 2.82

  • Gets an array of GioUnix.MountEntrys containing the Unix mounts listed in table_path.

    This is a generalized version of GioUnix.mount_entries_get, mainly intended for internal testing use. Note that GioUnix.mount_entries_get may parse multiple hierarchical table files, so this function is not a direct superset of its functionality.

    If there is an error reading or parsing the file, NULL will be returned and both out parameters will be set to 0.

    Parameters

    • Deprecatedtable_path: string

      path to the mounts table file (for example /proc/self/mountinfo)

    Returns [MountEntry[] | null, number]

    mount entries, or NULL if there was an error loading them

    2.82

    since 2.84: Use GioUnix.mount_entries_get_from_file instead.