Page 1 of 1

ftp, create directory if not exists

Posted: Sun Dec 26, 2010 4:56 pm
by ehsmeng
Hi list,

I use JBatchUpload with FTP and have..

document.writeln('<PARAM NAME="param4" VALUE="account">');
document.writeln('<PARAM NAME="value4" VALUE="aDirectory">');

Unfortunately if the directory does not exist, JBatchUpload says:
Upload Failed: Cannot change directory

Is there a way to create directories as needed?

Thanks,
Marcus

Re: ftp, create directory if not exists

Posted: Sun Dec 26, 2010 6:24 pm
by support
Sure, add the following parameter:
<PARAM NAME="param5" VALUE="accountcreation">
<PARAM NAME="value5" VALUE="true">

Does it help?

Re: ftp, create directory if not exists

Posted: Sun Dec 26, 2010 10:49 pm
by ehsmeng
Not being english native speaker my vocabulary fails to correctly express the massive success of these flags so I'll settle with "Super!".

Thanks!
Marcus