Hello,

 

I have the following snippet of code:

 

            String url = "http://"+ serverName + ":" + slidePort +
"/slide/files/";

            HttpURL hrl = new HttpURL(url); 

            WebdavResource wdr = new WebdavResource(hrl);

            File fn = new File(fileName);

            String path = url + fn.getName();

            wdr.putMethod(path, fn);

            wdr.close();

 

This successfully uploads the given file to the Slide server (under
slide/files).

How should I modify the above code to be able to upload the file in a
subfolder of slide/files? (something like
slide/files/folderA/folderB/filename). 

 

In other words: is there a way to programmatically create folders under
slide/files?

 

Thanks in advance for your response,

Zoltan

Reply via email to