Re: file chooser dialog
- From: Roland Koebler <rk-list koebler com>
- To: gtk-app-devel-list gnome org
- Subject: Re: file chooser dialog
- Date: Fri, 04 Aug 2006 11:32:51 +0200 (CEST)
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]