gio.unix_mount_point
Module for [UnixMountPoint] class
class UnixMountPoint
Types 1
Defines a Unix mount point (e.g. <filename>/dev</filename>). This corresponds roughly to a fstab entry.
Methods
UnixMountPoint self()Returns `this`, for use in `with` statements.int compare(gio.unix_mount_point.UnixMountPoint mount2)Compares two unix mount points.gio.unix_mount_point.UnixMountPoint copy()Makes a copy of mount_point. Returns: a new #GUnixMountPointstring getDevicePath()Gets the device path for a unix mount point. Returns: a string containing the device path.string getFsType()Gets the file system type for the mount point. Returns: a string containing the file system type.string getMountPath()Gets the mount path for a unix mount point. Returns: a string containing the mount path.string getOptions()Gets the options for the mount point. Returns: a string containing the options.bool guessCanEject()Guesses whether a Unix mount point can be ejected. Returns: true if mount_point is deemed to be ejectable.gio.icon.Icon guessIcon()Guesses the icon of a Unix mount point. Returns: a #GIconstring guessName()Guesses the name of a Unix mount point. The result is a translated string. Returns: A newly allocated string that must be freed with [glib.global.gfree]gio.icon.Icon guessSymbolicIcon()Guesses the symbolic icon of a Unix mount point. Returns: a #GIconbool isLoopback()Checks if a unix mount point is a loopback device. Returns: true if the mount point is a loopback. false otherwise.bool isReadonly()Checks if a unix mount point is read only. Returns: true if a mount point is read only.bool isUserMountable()Checks if a unix mount point is mountable by the user. Returns: true if the mount point is user mountable.gio.unix_mount_point.UnixMountPoint at(string mountPath, out ulong timeRead)Gets a #GUnixMountPoint 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 [gio.global.unixMountPointsChan...