GMount

The gio.mount.Mount interface represents user-visible mounts. Note, when porting from GnomeVFS, gio.mount.Mount is the moral equivalent of GnomeVFSVolume.

gio.mount.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.Mount instance is an asynchronous operation. For more information about asynchronous operations, see gio.async_result.AsyncResult and gio.task.Task. To unmount a gio.mount.Mount instance, first call gio.mount.Mount.unmountWithOperation with (at least) the gio.mount.Mount instance and a gio.types.AsyncReadyCallback. The callback will be fired when the operation has resolved (either with success or failure), and a gio.async_result.AsyncResult structure will be passed to the callback. That callback should then call gio.mount.Mount.unmountWithOperationFinish with the gio.mount.Mount and the gio.async_result.AsyncResult data to see if the operation was completed successfully. If an error is present when gio.mount.Mount.unmountWithOperationFinish is called, then it will be filled with any error information.

struct GMount