Women in Technology

Hear us Roar



Article:
  Sliding into WebDAV
Subject:   Traversing Directory Trees
Date:   2005-03-02 07:10:24
From:   afsteed
I'm having trouble using the slide webdav client to traverse a directory tree on the server.


My server is Apache 2.0.53 with webdav enabled, and the directory structure is:


/dav/
/dav/FolderA/
/dav/FolderB/
/dav/FolderB/FolderC/


/dav/, /dav/FolderA/, and /dav/FolderB/FolderC/ contain files.


If I create a WebdavResource to /dav/ and do either a list() or getChildResources() it lists only the files and not the subdirectories. However, it lists itself as a child if and only if there are subdirectories.


Example, if I remove FolderA and FolderB from /dav/, and do a list() or getChildResources() I get this:
/dav/file1.txt
/dav/file2.txt


But if /dav/ contains any subdirectories, I get this:
/dav/
/dav/file1.txt
/dav/file2.txt


Given a WebdavResource that is a collection, how do you get a list of the collections contained in it?

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Traversing Directory Trees
    2005-03-02 07:13:18  afsteed [View]

    I should also mention that I'm using the Slide WebDAV client version 2.1