infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
General
FTP - Check File Age?
Keith McLeod
Does anyone have a proc or method to check the file age on another system when picking up files? Or whether the file is open? so the file is not picked up before its time.
It would be nice if Cloverleaf could poll and not pick up files unless they are older than 2 minutes for example.
Find more posts tagged with
Clovertech
Comments
Max Drown
Keith, the capability to do this is in Cloverleaf TPS. The Tcl FTP package is relatively easy to use and is included with the Cloverleaf installation. Using the package, create a proc that returns a list of valid files to pickup. The fields in the NetConfig where you would place this proc is TPS Directory Parse and possibly TPS Deletion.
Another options is to use a timer thread and a UPoC tcl proc coded using the tcl ftp package.
Charlie Bursell
If you have Cloverleaf 6.0+ this capability is there. In a Fileset protocol you can get a long directory listing which will have size, last mod time, etc.. You can make your decisions based on that.
If you do not have Cloverleaf 6.0+ I would use TclCurl
Russ Ross
So far I've been able to not have to go that far by doing a simple trick of having the file name with somehting like "_hide" on the end of the file name and then have it renamed without the "_hide" when the file is ready.