On Feb 20, 2010, at 7:44 PM, Jon Cruz wrote:


On Feb 20, 2010, at 4:43 PM, <J.B.C.Engelen@ewi.utwente.nl> 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();