Hi all,
Does anybody remember the way to split a gchar filename string into the file's path, it's name and it's extension?
Thanks a lot! Johan
On Feb 20, 2010, at 4:43 PM, <J.B.C.Engelen@...1578...> wrote:
Hi all,
Does anybody remember the way to split a gchar filename string into the file's path, it's name and it's extension?
There's a call for that...
... but be careful to use things properly. Paths are tricky beasties.
On Feb 20, 2010, at 7:44 PM, Jon Cruz wrote:
On Feb 20, 2010, at 4:43 PM, <J.B.C.Engelen@...1578...> wrote:
Hi all,
Does anybody remember the way to split a gchar filename string into the file's path, it's name and it's extension?
There's a call for that...
... but be careful to use things properly. Paths are tricky beasties.
Look at these. Note that the first one is a different beastie and lives in a different page of the API docs.
g_filename_display_basename()
g_path_is_absolute() g_path_skip_root() g_path_get_basename() g_path_get_dirname() g_build_filename() g_build_path();
-----Original Message----- From: Jon Cruz [mailto:jon@...18...] Sent: zondag 21 februari 2010 4:54 To: Engelen, J.B.C. (Johan) Cc: inkscape-devel List Subject: Re: [Inkscape-devel] Splitting filename into components
On Feb 20, 2010, at 7:44 PM, Jon Cruz wrote:
On Feb 20, 2010, at 4:43 PM, <J.B.C.Engelen@...1578...> wrote:
Hi all,
Does anybody remember the way to split a gchar
filename string into the
file's path, it's name and it's extension?
There's a call for that...
... but be careful to use things properly. Paths are tricky beasties.
Look at these. Note that the first one is a different beastie and lives in a different page of the API docs.
g_filename_display_basename()
g_path_is_absolute() g_path_skip_root() g_path_get_basename() g_path_get_dirname() g_build_filename() g_build_path();
Thanks Jon! I need it for a kick-ass output extension that I'm working on. I have to strip the path from a filename, g_path_get_basename() works perfectly!
-johan
participants (3)
-
unknown@example.com
-
Diederik van Lierop
-
Jon Cruz