 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
mmittiga
Joined: 03 Aug 2010 Posts: 14 Country: United States |
|
ftp filewatcher case insenstive |
|
Right now I am checking every 10 minutes for file to exist on a ftp server.
File I am checking for recently started coming in lower case one day and uppercase the next day.
example of how I am currently doing the FTPFileExists,
// Append file extension
Concat( "XXX/ABC_DEF" ,".CSV", file_name )
CHECK_FOR_FILE:
// Watch for file on remote FTP site.
FTPFileExists "ftp.xxxxx.com", "xxxx", "xxxx",file_name, file_found
ifthen file_found, RUN_JOB, TIMEOUT
TIMEOUT:
// wait 600 seconds then try again
Wait 600
Add wait_time, 600, wait_time
// check if we are waiting already too long (more than 30 minutes)
isGreater wait_time, 7200, timeout
if timeout, NOTIFY, TRY_LATER
Is there a way to write FTPFileExists to be case insensitive?
Thanks for any help or suggestions.
|
|
Tue Apr 22, 2014 11:29 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
You can use FTPDir to get the full file listing, then convert the output to lower case and search for the required file name in lower case. Hope that helps.
|
|
Tue Apr 22, 2014 12:30 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|