Re: Directory name of mounted URI
- From: Ondrej Holy <oholy redhat com>
- To: Prakash Sabapathy <prakash_sabapathy hotmail com>
- Cc: "gvfs-list gnome org" <gvfs-list gnome org>
- Subject: Re: Directory name of mounted URI
- Date: Wed, 18 Oct 2017 12:00:32 +0200
Hi Prakash,
not sure that this is still valid, it seems that the email was sent before two months, but I received it today for some reason...
Please be aware of GIO/GVfs has been designed to be used over GIO API using URI and POSIX access over FUSE mount point is a just limited fallback.
The following pseudocode should help you to answer your question:
GFile *file = g_file_new_for_uri (uri);
g_file_mount_enclosing_volume (file, ...);
...
GMount *mount = g_file_find_enclosing_mount (file, ...)
GFile *root = g_mount_get_root (mount);
gchar *path = g_file_get_path (root);
It is not possible to specify own folder, the folder name is based on mount parameters...
Regards
Ondrej
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]