ftp, create directory if not exists

Upload core product.
Post Reply
ehsmeng
Posts: 2
Joined: Thu Jun 04, 2009 11:51 am

ftp, create directory if not exists

Post 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: ftp, create directory if not exists

Post by support »

Sure, add the following parameter:
<PARAM NAME="param5" VALUE="accountcreation">
<PARAM NAME="value5" VALUE="true">

Does it help?

ehsmeng
Posts: 2
Joined: Thu Jun 04, 2009 11:51 am

Re: ftp, create directory if not exists

Post 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

Post Reply