Checking File Date
Posted: Tue Dec 31, 2019 12:29 pm
Hello ~ I am trying to have a conditional statement that checks the data of a file and if it does not match the current system date to send me an email, otherwise the file gets SFTP to a vendor. I am having trouble with the syntax that checks the file date.
This is my "IF" condition:
${FileInfo('C:\Program Files\HelpSystems\GoAnywhere\userdata\webdocs\Temp\FULLUPBAL.CSV')}:lastModifiedDate < system.currentDate
Which throws this error:
[8046 - If: ${FileInfo('C:\Program Files\HelpSystems\Go...] Invalid condition syntax in attribute 'condition' of element 'if'. Unrecognizable character '}' found at position '87'.
Any help would be appreciated
This is my "IF" condition:
${FileInfo('C:\Program Files\HelpSystems\GoAnywhere\userdata\webdocs\Temp\FULLUPBAL.CSV')}:lastModifiedDate < system.currentDate
Which throws this error:
[8046 - If: ${FileInfo('C:\Program Files\HelpSystems\Go...] Invalid condition syntax in attribute 'condition' of element 'if'. Unrecognizable character '}' found at position '87'.
Any help would be appreciated