Directories
A WebDAV directory is analogous to a file system directory. A directory must exist in order to view (via a WebDAV client) any documents in that directory (just like in a filesystem, where you must navigate to a directory in order to access any files in that directory). Each document in a directory has a URI that includes the directory URI as a prefix. Also, each directory visible from a WebDAV server must have the WebDAV root as its prefix, and there must exist a directory with the WebDAV root in the database.
For example, if you have a WebDAV root of http://marklogic.com/
, then the URI of all documents and all directories must begin with that root in order to be visible from a WebDAV client. Also, the directory with a URI http://marklogic.com/
must exist in the database. Therefore, a document with a URI of http://marklogic.com/file.xml
is visible from this WebDAV server, and a directory with a URI of http://marklogic.com/dir/
is also visible. A directory with a URI of /dir/
and a document with a URI of /dir/file.xml
is not visible from this server, however, because its URI does not begin with the WebDAV root.
For more details on directories and properties, see Property Documents and Directories in the Application Developer’s Guide.