g_build_filename and members
- From: Mikael Hermansson <mike tielie gmail com>
- To: gtk-devel-list <gtk-devel-list gnome org>
- Subject: g_build_filename and members
- Date: Sun, 06 Jan 2008 21:43:25 +0100
Hmm just saw that g_build_filename does not work for GIO Uris
its simply strips away separator for example:
g_build_filename("file:///", g_get_home_dir(), "foobar.txt", NULL)
The File:/ gvfs backend will accept this but if we pass:
g_build_filename("sftp://hostname", "/home/user/", "foobar.txt", NULL)
it will fail because gvfs sftp backend dont like
instead it will have sftp://hostname/home/....
I dont know whish is correct but its seems to me there always should be
two DIR_SEPARATORS at the begining in URIS?
maybe there should be an g_build_uri? or similar?
] [Thread Prev