Working with WebDAV resources and collections

webdav.MakeDir('http://localhost/WebDAV/temp1/');   
source := TStringStream.Create('test data');   
webdav.Put('http://localhost/WebDAV/temp1/file1.txt', source);   
source.Free();   
 
webdav.ListDir('http://localhost/WebDAV/temp1/');   
Assert(webdav.ResourceProperties.Count > 0);   
Assert(webdav.ResourceProperties.FindItem('http://localhost/WebDAV/temp1/file1.txt''getcontentlength') <> nil);    
 
 
webdav.Copy('http://localhost/WebDAV/temp1/''http://localhost/WebDAV/temp2/');   
webdav.Delete('http://localhost/WebDAV/temp1/');   
webdav.Move('http://localhost/WebDAV/temp2/''http://localhost/WebDAV/temp1/');   
 

Add Feedback