WebdavResource[] resources = resource.listWebdavResources ();
List<URL> urls = new ArrayList<URL>(resources.length);
for (int i = 0; i < resources.length; i++)
{
WebdavResource member = resources[i];
HttpURL httpURL = member.getHttpURL ();
if (filter.accept (baseUrl, httpURL.getName ()))
{
String uri = httpURL.getURI();
if (member.isCollection ())
{
if (! uri.endsWith ("/"))
uri += "/";
// it is a directory: do we have to recursively list its content?
String path = httpURL.getPath();
if (scanNonDottedSubDirs && getFilePartFromUrl(path).indexOf (".") == -1)
{
URL subUrl = new URL (uri) ;
urls.addAll (listMembers (subUrl, filter, scanNonDottedSubDirs));
}