W3C home > Mailing lists > Public > uri@w3.org > June 2016

Re: File URIs, home and relative paths

From: Matthew Kerwin <matthew@kerwin.net.au>
Date: Sun, 12 Jun 2016 09:23:43 +1000
Message-ID: <CACweHNDyLJhh0i_bDEto4NHtj7y8YSzxDayPBw-s8fHhLQSvbw@mail.gmail.com>
To: Jason Dusek <jason.dusek@gmail.com>
Cc: uri@w3.org
On 12/06/2016 5:57 AM, "Jason Dusek" <jason.dusek@gmail.com> wrote:
>
> It is strange to me that the draft neither provides for home and the
present directory semantics, nor clearly speaks to the issue (in a section
titled "Special Paths in UNIX and File URLs" or something similar). Perhaps
it would inspire future work in this area.
>
> Kind Regards,
>   Jason Dusek

In URI space current directory references are achieved using relative
references. "./foo/bar" is a valid relative reference, which can be
resolved against a base URI that represents $PWD.

User home directory and tilde expansion both, AFAIK, come from the shell,
not the file system. I could add a warning that a relative reference that
starts with "~/" (or "~username/") won't resolve against a base URI the
same way bash would resolve an equivalent path; but since no other URI
scheme special handles '~' is anyone going to find this valuable?

Cheers
Received on Saturday, 11 June 2016 23:24:21 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 11 June 2016 23:24:22 UTC