AnsweredAssumed Answered

How to get Date Modified of files in data stream?

Question asked by jtran821628 on Apr 13, 2017
Latest reply on Dec 14, 2017 by Adam Arrowsmith

Hello everyone, I have a SFTP connector that goes and grabs a bunch of files from an SFTP Server.  I want to look at the date modified of each file and only accept files that are new (date modified within 2 weeks of current date).  I believe I can do this with custom scripting, and saw a reply with some code in this thread (Read latest file from Folder using Disk Connector).  I'm trying to modify this line File folder = new File("/SOURCE"), so that instead of looking at files in a disk location, it's reading the files in my input stream that I already grab via the SFTP connector.  Can anyone help?  Any advice would be appreciated.  Thanks.