Discuss this help topic in SecureBlackbox Forum

WebDAV: Get list of resources available on server

After you have initialized the WebDAV client, use TElWebDAVClient.List() method to retrieve the list of remote resources. Objects can be enumerated starting from the base path, the specified URL or the specified collection resource.

Depth parameter can be passed to the method to specify what resources need to be listed.

The list is returned as an instance of TElWebDAVObjectList class, which contains a list of TElWebDAVObject objects. Each TElWebDAVObject represents a single remote file or collection (directory in filesystem terms).



TElWebDAVClient cli = new TElWebDAVClient();
cli.BaseURL = @"http://remote.com/dav_folder";

TElWebDAVObjectList objs = new TElWebDAVObjectList();


for (int i = 0; i < objs.Count; i++)

  TElWebDAVStorageObject o = objs[i];
  Console.WriteLine(o.DisplayName + ", Collection:" + o.Collection.ToString());

How To articles about WebDAV client

Discuss this help topic in SecureBlackbox Forum