Function

GioUnix-2.0GioUnixmount_entry_forSince 2.84

  • mount_entry_for(file_path: string): [MountEntry | null, number]

    Gets a GioUnix.MountEntry for a given file path.

    If time_read is set, it will be filled with a Unix timestamp for checking if the mounts have changed since with GioUnix.mount_entries_changed_since.

    If more mounts have the same mount path, the last matching mount is returned.

    This will return NULL if looking up the mount entry fails, if file_path doesn’t exist or there is an I/O error.

    Parameters

    • file_path: string

      file path on some Unix mount

    Returns [MountEntry | null, number]

    a GioUnix.MountEntry

    2.84