Function

GioUnix-2.0GioUnixmount_points_get_from_fileSince 2.82

  • Gets an array of GioUnix.MountPoints containing the Unix mount points listed in table_path.

    This is a generalized version of GioUnix.mount_points_get, mainly intended for internal testing use. Note that GioUnix.mount_points_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

    • table_path: string

      path to the mount points table file (for example /etc/fstab)

    Returns [MountPoint[] | null, number]

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

    2.82