Re: [Tracker] g_file_make_directory_with_parents is undefined



On Sun, 2008-11-09 at 09:52 -0500, Jamie McCracken wrote:
On Sun, 2008-11-09 at 15:34 +0100, Laurent Aguerreche wrote:
Hi!

tracker-indexer fails to index MP3 files because it relies on a call of
g_file_make_directory_with_parents, unfortunately this function was only
added recently and I think it is missing in almost all the glib
libraries shipped by current linux distributions. In fact, it seems that
this function has been introduced with GLib 2.17.1
( http://mail.gnome.org/archives/gtk-devel-list/2008-June/msg00155.html ).

Is it possible to avoid the use of this function or to embed a copy of
it within tracker-extract?


have to agree with laurent here

why not use g_mkdir_with_parents instead?

Because the location can be on a URI too, not only on a local path

Attached patch would embed the code, although this of course duplicates
the code from glib.

-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be

Attachment: forottela.diff
Description: Text Data



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