Gio.Mount
const Gio = imports.gi.Gio; let mount = new Gio.Mount();
The Gio.Mount interface represents user-visible mounts. Note, when porting from GnomeVFS, Gio.Mount is the moral equivalent of #GnomeVFSVolume.
Gio.Mount is a "mounted" filesystem that you can access. Mounted is in quotes because it's not the same as a unix mount, it might be a gvfs mount, but you can still access the files on it if you use GIO. Might or might not be related to a volume object.
Unmounting a Gio.Mount instance is an asynchronous operation. For more information about asynchronous operations, see Gio.AsyncResult and Gio.Task. To unmount a Gio.Mount instance, first call Gio.Mount.prototype.unmount_with_operation with (at least) the Gio.Mount instance and a Gio.AsyncReadyCallback. The callback will be fired when the operation has resolved (either with success or failure), and a #GAsyncReady structure will be passed to the callback. That callback should then call Gio.Mount.prototype.unmount_with_operation_finish with the Gio.Mount and the #GAsyncReady data to see if the operation was completed successfully. If an @error is present when Gio.Mount.prototype.unmount_with_operation_finish is called, then it will be filled with any error information.
Prerequisites
Mount requires GObject.Object
Known Implementations
None
Methods
- Gio.Mount.prototype.can_eject
- Gio.Mount.prototype.can_unmount
- Gio.Mount.prototype.eject
- Gio.Mount.prototype.eject_finish
- Gio.Mount.prototype.eject_with_operation
- Gio.Mount.prototype.eject_with_operation_finish
- Gio.Mount.prototype.get_default_location
- Gio.Mount.prototype.get_drive
- Gio.Mount.prototype.get_icon
- Gio.Mount.prototype.get_name
- Gio.Mount.prototype.get_root
- Gio.Mount.prototype.get_sort_key
- Gio.Mount.prototype.get_symbolic_icon
- Gio.Mount.prototype.get_uuid
- Gio.Mount.prototype.get_volume
- Gio.Mount.prototype.guess_content_type
- Gio.Mount.prototype.guess_content_type_finish
- Gio.Mount.prototype.guess_content_type_sync
- Gio.Mount.prototype.is_shadowed
- Gio.Mount.prototype.remount
- Gio.Mount.prototype.remount_finish
- Gio.Mount.prototype.shadow
- Gio.Mount.prototype.unmount
- Gio.Mount.prototype.unmount_finish
- Gio.Mount.prototype.unmount_with_operation
- Gio.Mount.prototype.unmount_with_operation_finish
- Gio.Mount.prototype.unshadow
Signals
Virtual functions
- Gio.Mount::can_eject
- Gio.Mount::can_unmount
- Gio.Mount::eject
- Gio.Mount::eject_finish
- Gio.Mount::eject_with_operation
- Gio.Mount::eject_with_operation_finish
- Gio.Mount::get_default_location
- Gio.Mount::get_drive
- Gio.Mount::get_icon
- Gio.Mount::get_name
- Gio.Mount::get_root
- Gio.Mount::get_sort_key
- Gio.Mount::get_symbolic_icon
- Gio.Mount::get_uuid
- Gio.Mount::get_volume
- Gio.Mount::guess_content_type
- Gio.Mount::guess_content_type_finish
- Gio.Mount::guess_content_type_sync
- Gio.Mount::pre_unmount
- Gio.Mount::remount
- Gio.Mount::remount_finish
- Gio.Mount::unmount
- Gio.Mount::unmount_finish
- Gio.Mount::unmount_with_operation
- Gio.Mount::unmount_with_operation_finish