session.EnumerateRemoteFiles - only enumerate files older than x minutes
I am writing a PowerShell script to check whether files have been successfully processed from a SFTP site.
As part of this script I have the following:
Is there a way to amend this so that it only enumerates files that have a created time of older than 10 minutes ago.
As part of this script I have the following:
$files = @($session.EnumerateRemoteFiles( "/pathToFolder", "*.txt", [WinSCP.EnumerationOptions]::None))