GioUnix.MountPoint¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GioUnix.MountPoint¶
Defines a Unix mount point (e.g.
/dev). This corresponds roughly to a fstab entry.- classmethod at(mount_path)¶
- Parameters:
mount_path (
str) – path for a possible Unix mount point- Returns:
a [struct`GioUnix`.MountPoint], or
NULLif no match is found- time_read:
return location for a timestamp
- Return type:
(
GioUnix.MountPointorNone, time_read:int)
Gets a [struct`GioUnix`.MountPoint] for a given mount path.
If time_read is set, it will be filled with a Unix timestamp for checking if the mount points have changed since with [func`GioUnix`.mount_points_changed_since].
If more mount points have the same mount path, the last matching mount point is returned.
New in version 2.66.
- compare(mount2)¶
- Parameters:
mount2 (
GioUnix.MountPoint) – a [struct`GioUnix`.MountPoint]- Returns:
1,0or-1if self is greater than, equal to, or less than mount2, respectively- Return type:
Compares two Unix mount points.
- copy()¶
- Returns:
a new [struct`GioUnix`.MountPoint]
- Return type:
Makes a copy of self.
New in version 2.54.
- free()¶
Frees a Unix mount point.
- get_device_path()¶
- Returns:
a string containing the device path
- Return type:
Gets the device path for a Unix mount point.
- get_fs_type()¶
- Returns:
a string containing the file system type
- Return type:
Gets the file system type for the mount point.
- get_mount_path()¶
- Returns:
a string containing the mount path
- Return type:
Gets the mount path for a Unix mount point.
- get_options()¶
-
Gets the options for the mount point.
New in version 2.32.
- guess_can_eject()¶
- Returns:
true if self is deemed to be ejectable; false otherwise
- Return type:
Guesses whether a Unix mount point can be ejected.
- guess_icon()¶
- Returns:
a [iface`Gio`.Icon]
- Return type:
Guesses the icon of a Unix mount point.
- guess_name()¶
- Returns:
a newly allocated translated string
- Return type:
Guesses the name of a Unix mount point.
The result is a translated string.
- guess_symbolic_icon()¶
- Returns:
a [iface`Gio`.Icon]
- Return type:
Guesses the symbolic icon of a Unix mount point.
New in version 2.34.
- is_loopback()¶
- Returns:
true if the mount point is a loopback device; false otherwise
- Return type:
Checks if a Unix mount point is a loopback device.
- is_readonly()¶
- Returns:
true if a mount point is read only; false otherwise
- Return type:
Checks if a Unix mount point is read only.