unixMountFor
fn
gio.unix_mount_entry.UnixMountEntry unixMountFor(string filePath, out ulong timeRead)Gets a #GUnixMountEntry 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 [gio.global.unixMountsChangedSince].
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
filePath | file path on some unix mount. |
timeRead | guint64 to contain a timestamp. |
Returns
a #GUnixMountEntry.