W3C home > Mailing lists > Public > uri@w3.org > August 2003

Re: URI reference to a directory

From: Stefan Eissing <stefan.eissing@greenbytes.de>
Date: Thu, 28 Aug 2003 09:02:45 +0200
Cc: "Israel Viente" <israel_viente@il.vio.com>, <uri@w3.org>
To: "Daniel Brockman" <daniel@brockman.nu>
Message-Id: <A029F0B8-D925-11D7-93A4-00039384827E@greenbytes.de>

Am Mittwoch, 27.08.03, um 21:40 Uhr (Europe/Berlin) schrieb Daniel 

> Israel Viente wrote:
>> Can a URI reference to a folder and not a file ?
>> How can you distinguish between a file URI and a folder one ?
> As I understand it, any URL ending with a slash identifies a directory,
> while any other identifies either a file or a directory.

That would be true for file: URIs. For other URI schemes you generally
cannot deduce such a thing. Pure HTTP does not have the concept of
a "file" or "directory". A client makes a GET on the URI and will
get a representation (or 404 or something else).

WebDAV, as extension of HTTP, defines "collections" which behave
like folders in a file system. A client performs a PROPFIND request
and asks the server for the type of the resource.


Received on Thursday, 28 August 2003 03:02:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:06 UTC