Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


BaiadaIT
2013-12-08T05:16:23Z
Hi,

I have an FTP task to upload some files to a FTP server and I would like them to be uploaded into a folder with the current date in its name. I have put the following into the "DestinationFolder" of the FTP upload task:

"/IN/{DATEFORMAT(yyyyMMdd)}"

The variable is correctly replaced with the current date but if the folder doesn't already exist on the FTP server the upload task fails with the log message saying "Unable to change folder to: /IN/20131208, err: No such file".

How do I configure the FTP upload task to create the folder if it doesn't exist ? I can't find any options to do that. Thanks

Regards,
Terry
Sponsor
Forum information
BaiadaIT
2013-12-08T07:16:52Z
I found that on "FTP/FTPS/SFTP" tab of the task I can add a command before the upload command to create the folder which works but then the second command to upload the file(s) doesn't run. Any idea why the second command doesn't run ?

If I create two separate tasks in the job, the first to create the folder and the second to do the upload, it works fine but surely it should work in a single task that runs both commands ?

Regards,
Terry
BaiadaIT
2013-12-09T03:57:25Z
Hi,

I set this up on a different server and now it all works as I thought it should with multiple FTP commands working fine with a single task. Not sure why it wouldn't work on the first server though.

Regards,
Terry
Scroll to Top