FTP Question

Discuss RoboTask here
Post Reply
Brandon
Posts: 1
Joined: Mon May 23, 2005 9:49 am

FTP Question

Post by Brandon »

We need to setup a task to monitor a folder on an FTP site (example: \out). When a file is found in the folder it should be downloaded to the local computer. Also, the file needs to be moved to a different folder on the FTP site (example: \out\done).
We want to monitor every 60 seconds. When the task begins to download a large file it may take more than 60 seconds to download. Will the task run again in 60 seconds (in another instance) and attempt to download the file again before the first download has completed?
Is there a way to move the file on the FTP site to the "done" folder on the FTP site or does it need to be uploaded from the copy that was downloaded to the local system?
Another task will be setup to do further processing on the file once it is downloaded. We had problems in the past with other software attempting to access a file before it was completely downloaded. Does RoboTask check the file to be sure it is completely there?
 
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

FTP Question

Post by Oleg »

We need to setup a task to monitor a folder on an FTP site (example: \out). When a file is found in the folder it should be downloaded to the local computer. Also, the file needs to be moved to a different folder on the FTP site (example: \out\done).
You can use FTP file loop and start it every 60 sec (Cyclic triggering event). If your FTP contains files each file will be downloaded.
Use “FTP rename” action for moving files into subfolder.
We want to monitor every 60 seconds. When the task begins to download a large file it may take more than 60 seconds to download. Will the task run again in 60 seconds (in another instance) and attempt to download the file again before the first download has completed?
If task is executing and some triggering event tries launching it again the task will not start again. I.e. any triggering event can start the task only in when task is in idle mode.
Another task will be setup to do further processing on the file once it is downloaded. We had problems in the past with other software attempting to access a file before it was completely downloaded. Does RoboTask check the file to be sure it is completely there?
There is system macrovariable "{IsFileFree(Any_File_Name)}" for this purpose. It returns TRUE if specified file is free for access; FALSE otherwise.
Post Reply