Re: Getting folder names



Gautam Narain wrote:

I am using glade to design the interface and I have a
file selection dialog. I know how to get the file
selection. But how exactly do I go about getting
folder names ?


Try using g_path_get_dirname():

   gchar *dirname;

   dirname = g_path_get_dirname(output)
   g_print("%s\n", dirname);

   g_free(dirname);






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]