FTP Upload of All Subfolders in a Folder

Discuss RoboTask here
Post Reply
cclowes
Posts: 3
Joined: Tue Jul 24, 2012 4:00 pm

FTP Upload of All Subfolders in a Folder

Post by cclowes »

I want to upload the sub-folders, and the files that they
contain, of a particular folder to an FTP site. When I
try to do it I get the following error:

E: 7/20/2012 12:46:54 PM: FtpPutFile fails with message:
The filename, directory name, or volume label syntax is
incorrect.
E: 7/20/2012 12:46:54 PM: An error occurred. Step #12
(FTP Upload).
E: 7/20/2012 12:46:54 PM: Task execution is aborted

This is the section of code where it is failing.

[Actions\Action12]
ActionID=STRING|"A_FTP_UPLOAD"
Enabled=INTEGER|-1
Name=STRING|"FTP Upload"
Params=FOLDER

[Actions\Action12\Params]
file=STRING|"\\Estate\Pagination\AdBase\AdBase_PD_Travidi
a\*"
folder=STRING|"/inserts"

AdBase_PD_Travidia is the folder that contains all the
folders that I want to send to the FTP site and there can
be up to 20 sub-folders in that folder. The names of the
sub-folders always change. Inside the folders are any
where from 1 to 3 PDF files.

My question is, is there an easy way to upload all of the
folders in the AdBase_PD_Travidia folder?
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

FTP Upload of All Subfolders in a Folder

Post by Oleg »

The simplest way is the using of FTP Synchronization (or SSP FTP Synchronization) action.
Use unidirectional synchronisation from local folder to remote.
The action can process subfolders too.
Post Reply