Hi,
Is there an easy way to download several FTP files in a folder (images), within current date and lets say, 2 days old?
Download FTP files from certain date
Re: Download FTP files from certain date
You can download files in the loop.
FTP File Loop (also SSL FTP File loop and sFTP File loop) has date filter.
You select only files older than 2 days (see screenshot):
FTP File Loop (also SSL FTP File loop and sFTP File loop) has date filter.
You select only files older than 2 days (see screenshot):
Oleg Yershov
Re: Download FTP files from certain date
Oleg,
In my Robotask there is no date filter in any of the FTP file loops. How can I fix this?
In my Robotask there is no date filter in any of the FTP file loops. How can I fix this?
Re: Download FTP files from certain date
Date filters has been implemented in version 5.8. You can update your version up to latest for 40% of full cost. ("1 year of free updates" option)
For your current version you can make such filter yourself.
You have to save the time of last update of each file and make the condition in the loop.
Like this (see the example):
For your current version you can make such filter yourself.
You have to save the time of last update of each file and make the condition in the loop.
Like this (see the example):
Code: Select all
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|317955339
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task1111"
Hide=INTEGER|0
ID=INTEGER|1599158212
LogOnAsUser=INTEGER|1
Name=STRING|"FTP Log On..."
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
[Actions\Action1]
ActionID=STRING|"A_FTP_LOGON"
Enabled=INTEGER|-1
Name=STRING|"FTP Log On"
Params=FOLDER
[Actions\Action1\Params]
anonymous=STRING|"1"
host=STRING|"ftp.company.com"
passive=STRING|"1"
password=STRING|"42310383162884337286400984055142142"
port=STRING|"21"
proxykind=STRING|"0"
useproxy=STRING|"0"
username=STRING|"anonymous"
[Actions\Action2]
ActionID=STRING|"A_FTP_FILELOOP"
Enabled=INTEGER|-1
Name=STRING|"FTP File Loop"
Params=FOLDER
[Actions\Action2\Params]
createmode=STRING|"1"
date1=STRING|"20150316"
date2=STRING|"20150316"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
filenameonly=STRING|"0"
folder=STRING|"*.txt"
kind=STRING|"0"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
sizesave=STRING|"0"
sort=STRING|"0"
sortby=STRING|"0"
sortorder=STRING|"0"
subfolders=STRING|"0"
timesave=STRING|"1"
varname=STRING|"FILENAME"
vartime=STRING|"DT"
[Actions\Action3]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action3\Params]
case=STRING|"0"
operator=STRING|"2"
type=STRING|"2"
value1=STRING|"{dt}"
value2=STRING|"{DateIncDays(-2)}"
[Actions\Action4]
ActionID=STRING|"A_FTP_DOWNLOAD"
Enabled=INTEGER|-1
Name=STRING|"FTP Download"
Params=FOLDER
[Actions\Action4\Params]
file=STRING|"{filename}"
folder=STRING|"{TEMPDIR}"
ifexists=STRING|"0"
[Actions\Action5]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Actions\Action6]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
Oleg Yershov