Re: Dealing with relative paths to local file's URIs



On Fri, 6 Sep 2002, Archit Baweja wrote:

> From: Archit Baweja <bighead users sourceforge net>
> Subject: Dealing with relative paths to local file's URIs
>
>
> ----------------------------------------------------------------------
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> I recently converted the File I/O of my HTML Editor to GnomeVFS (it previously
> used the standard FILE* API of the standard C lib).
>
> However for local files, now it only accepts the absolute path to the file.
> Relative paths like some/weird/foo/bar/dir/file or ./filename or ../filename
> are no longer accepted, and gnome_vfs_open_uri gives the "Invalid URI" error.
>
> So any suggested way to deal with this shortcoming/problem of GnomeVFS? Maybe
> using stat in conjungtion with GnomeVFS or is there a helper API to the
> GnomeVFSURI API?
>
> Thanks in advance
> Archit Bawja

You should be aware that relative uri's are resolved relative to _your
home dir_, NOT to the current dir. And yes, think that's a bug...

Kind regards,

Chipzz AKA
Jan Van Buggenhout
-- 

------------------------------------------------------------------------
                 UNIX isn't dead - It just smells funny
                           Chipzz ULYSSIS Org
------------------------------------------------------------------------




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