UnixMountPoint

class UnixMountPoint(*args, **kwargs)

Defines a Unix mount point (e.g. <filename>/dev</filename>). This corresponds roughly to a fstab entry.

Methods

class UnixMountPoint
at(mount_path: str) tuple[UnixMountPoint | None, int]

Gets a UnixMountPoint 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 unix_mount_points_changed_since().

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

Added in version 2.66.

Parameters:

mount_path – path for a possible unix mount point.

compare(mount2: UnixMountPoint) int

Compares two unix mount points.

Parameters:

mount2 – a GUnixMount.

free() None

Frees a unix mount point.

get_device_path() str

Gets the device path for a unix mount point.

get_fs_type() str

Gets the file system type for the mount point.

get_mount_path() str

Gets the mount path for a unix mount point.

get_options() str | None

Gets the options for the mount point.

Added in version 2.32.

guess_can_eject() bool

Guesses whether a Unix mount point can be ejected.

guess_icon() Icon

Guesses the icon of a Unix mount point.

guess_name() str

Guesses the name of a Unix mount point. The result is a translated string.

guess_symbolic_icon() Icon

Guesses the symbolic icon of a Unix mount point.

Added in version 2.34.

is_loopback() bool

Checks if a unix mount point is a loopback device.

is_readonly() bool

Checks if a unix mount point is read only.

is_user_mountable() bool

Checks if a unix mount point is mountable by the user.