[ CCode ( cname = "g_unix_mount_for" ) ]
[ Version ( since = "2.52" ) ]
public UnixMountEntry.for (string file_path, out uint64 time_read = null)
Gets a [struct@GioUnix.
Use [func@GioUnix.MountEntry.for] instead.
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 [
func@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.
| file_path |
file path on some Unix mount |
| time_read |
return location for a timestamp |
|
a [struct@GioUnix.MountEntry] |