:right-sidebar: True UnixMountPoint =================================================================== .. currentmodule:: gi.repository.Gio .. class:: UnixMountPoint(*args, **kwargs) :no-contents-entry: Defines a Unix mount point (e.g. ``/dev``\). This corresponds roughly to a fstab entry. Methods ------- .. rst-class:: interim-class .. class:: UnixMountPoint :no-index: .. classmethod:: at() -> ~typing.Tuple[~gi.repository.Gio.UnixMountPoint | None, int] Gets a :obj:`~gi.repository.Gio.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 :func:`~gi.repository.Gio.unix_mount_points_changed_since`. If more mount points have the same mount path, the last matching mount point is returned. .. versionadded:: 2.66 .. method:: compare(mount2: ~gi.repository.Gio.UnixMountPoint) -> int Compares two unix mount points. :param mount2: a ``GUnixMount``. .. method:: free() -> None Frees a unix mount point. .. method:: get_device_path() -> str Gets the device path for a unix mount point. .. method:: get_fs_type() -> str Gets the file system type for the mount point. .. method:: get_mount_path() -> str Gets the mount path for a unix mount point. .. method:: get_options() -> str | None Gets the options for the mount point. .. versionadded:: 2.32 .. method:: guess_can_eject() -> bool Guesses whether a Unix mount point can be ejected. .. method:: guess_icon() -> ~gi.repository.Gio.Icon Guesses the icon of a Unix mount point. .. method:: guess_name() -> str Guesses the name of a Unix mount point. The result is a translated string. .. method:: guess_symbolic_icon() -> ~gi.repository.Gio.Icon Guesses the symbolic icon of a Unix mount point. .. versionadded:: 2.34 .. method:: is_loopback() -> bool Checks if a unix mount point is a loopback device. .. method:: is_readonly() -> bool Checks if a unix mount point is read only. .. method:: is_user_mountable() -> bool Checks if a unix mount point is mountable by the user.