GioUnix.MountPoint¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
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
GioUnix.MountPoint
, orNone
if no match is found.- time_read:
guint64 to contain a timestamp.
- Return type:
(
Gio.UnixMountPoint
orNone
, time_read:int
)
Gets a
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 withGioUnix.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.
- classmethod compare(mount1, mount2)¶
- Parameters:
mount1 (
Gio.UnixMountPoint
) – a #GUnixMount.mount2 (
Gio.UnixMountPoint
) – a #GUnixMount.
- Returns:
1, 0 or -1 if mount1 is greater than, equal to, or less than mount2, respectively.
- Return type:
Compares two unix mount points.
- classmethod copy(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
.- Returns:
a new
GioUnix.MountPoint
- Return type:
Makes a copy of mount_point.
New in version 2.54.
- classmethod free(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – unix mount point to free.
Frees a unix mount point.
- classmethod get_device_path(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
.- Returns:
a string containing the device path.
- Return type:
Gets the device path for a unix mount point.
- classmethod get_fs_type(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
.- Returns:
a string containing the file system type.
- Return type:
Gets the file system type for the mount point.
- classmethod get_mount_path(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
.- Returns:
a string containing the mount path.
- Return type:
Gets the mount path for a unix mount point.
- classmethod get_options(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
.- Returns:
a string containing the options.
- Return type:
Gets the options for the mount point.
New in version 2.32.
- classmethod guess_can_eject(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
- Returns:
True
if mount_point is deemed to be ejectable.- Return type:
Guesses whether a Unix mount point can be ejected.
- classmethod guess_icon(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
- Returns:
a
Gio.Icon
- Return type:
Guesses the icon of a Unix mount point.
- classmethod guess_name(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
- Returns:
A newly allocated string that must be freed with
GLib.free
()- Return type:
Guesses the name of a Unix mount point. The result is a translated string.
- classmethod guess_symbolic_icon(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
- Returns:
a
Gio.Icon
- Return type:
Guesses the symbolic icon of a Unix mount point.
New in version 2.34.
- classmethod is_loopback(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
.- Returns:
- Return type:
Checks if a unix mount point is a loopback device.
- classmethod is_readonly(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
.- Returns:
True
if a mount point is read only.- Return type:
Checks if a unix mount point is read only.
- classmethod is_user_mountable(mount_point)¶
- Parameters:
mount_point (
Gio.UnixMountPoint
) – aGioUnix.MountPoint
.- Returns:
True
if the mount point is user mountable.- Return type:
Checks if a unix mount point is mountable by the user.