hi,

> You need to normalize the paths, then you can string compare them.
that's right. and then you could compare them with g_str_has_prefix(),
for example.

> Given that the current directory were /tmp/barb, normalizing the path
> will transform ./../file and /tmp/barb/file into ./file.
if you want to write such a thing:
maybe it's worth to look at the source of "readlink" (of GNU core utilities),
or maybe "realpath".

Roland
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to