I want to SFTP files and sub folders from my local path to remote path. My code is working fine if I want to transfer all the files and sub directories, but I only want to grab those sub directories that are 5 minutes old. In other words, I dont want to grab any sub directory that is very new. How can I achieve this. Below is my code:
TransferOptions transferOptions = new TransferOptions(); transferOptions.TransferMode = TransferMode.Binary; TransferOperationResult transferResult; transferResult = session.PutFiles(@"K:\Documents\*", "/D:/Files/", true, transferOptions); // Throw on any error transferResult.Check();
Any Help will be greatly appreciated.