Hi Everyone,

I am having troubles listing Files and subfolders within a Folder that has
an '&' in its name. I am using listWebDavResources to return the names of
the files.  This works fine when the folder does not have an '&' in the
name.

Below is the code that I am using:

path = "http://myiisserver.net/webdav/dgrimwood/M&T/";
HttpURL url = new HttpURL(path);
url.setUserinfo(sUsername, sPassword);
WebdavResource resource = new WebdavResource(url);
if (rc.exists() && rc.isCollection()) {
        WebdavResource[] rcs = rc.listWebdavResources();
                for (int i = 0; i < rcs.length; i++) {
                if (!rcs[i].isCollection()) {
                        list.addFile(
                            rcs[i].getDisplayName(),
                            rcs[i].getDisplayName(),
                            rcs[i].getGetContentType(),
                            Long.toString(rcs[i].getGetContentLength()));
                    }
                }
return list;

This example would return an array length of 0 when there should be 5. Any
ideas would be greatly appreciated.

Thanks!

Dave


====
This message and any attachments are confidential. Unauthorized use
or disclosure of this message is strictly prohibited, and this message
must be destroyed immediately if received by an unauthorized recipient.
====




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

Reply via email to