Search code examples
javaandroidwebdavsardine

Sardine Webdav : How to create a new file?


I'm working on Webdav client Sardine. I'm unable to create a new file (ex: file.txt) on server using Sardine webclient for Webdav. I created the directory using

sardine.createDirectory(dirPathToCreate);

Is there any way to create a new file using Sardine?


Solution

  • You can use the [Sardine.put] https://github.com/lookfirst/sardine/wiki/UsageGuide