Thanks a lot Antony, it was really as simple as this.

MARENDY, Anthony wrote:

Try the getChildResources() method.  This will return a WebDavResources object 
which you can then iterate through.

For each WebDavResource contained therein, you can call the isCollection() 
method to determine if it is a collection or not.

Anthony.


-----Original Message-----
From:   Vladimir Sakhovski [SMTP:[EMAIL PROTECTED]
Sent:   Wednesday, 15 March 2006 18:05
To:     [email protected]
Subject:        Problem with list()

Hello, I have a newbe question, which puzzles me for the last 2 days. In my simple webdav client application call to list() on a WebdavResource object returns an array with names of all files on a current path and the name of a current directory, but no subfolders in it. For example, if I have a folder "folder01" with "file01", "file02", "subfolder01", and "subfolder02", when list() will return an array with "file01", "file02" and "folder01" in it, and not "file01", "file02", "subfolder01", "subfolder02", as I expected.

Client bundled with slide distribution shows the same behaviour. So my question is, do I miss some important point about webdav interaction, and what would be the right way to learn correct file structure on a webdav server?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-----------------------------------------------------------------------------------
This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its related entities "Suncorp".
Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11 
55  or at suncorp.com.au.

The content of this e-mail is the view of the sender or stated author and does 
not necessarily reflect the view of Suncorp. The content, including 
attachments, is a confidential communication between Suncorp and the intended 
recipient. If you are not the intended recipient, any use, interference with, 
disclosure or copying of this e-mail, including attachments, is unauthorised 
and expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and delete the e-mail and any attachments from 
your system.

If this e-mail constitutes a commercial message of a type that you no longer 
wish to receive please reply to this e-mail by typing Unsubscribe in the 
subject line.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Vladimir Sakhovski
Software Developer
www.iplabs.de


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to