Re: file chooser dialog



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



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