I've been looking through the docs but I haven't found any solution to my specific use case. I don't know if you can check the Created By-timestamp in some way, or if I have to do some comparisons. To fix this I need to edit the FileMask to only download NEW files, ie files that weren't in the folder the last time the program was run. Thing is, as I'm about to publish this I realize that if I run this once per night, and it checks if files are modified the last 24 hours, it will just keep downloading and compressing the same files, as the modified timestamp will keep increasing for each compression. String date = currentDate.AddHours(-24).ToString("yyyy-MM-dd") Code snippet for this filemask: DateTime currentDate = DateTime.Now WinSCP is a reliable Open Source SFTP and FTP client that allows the safe copying of files between a local and a remote computer. Right now I have a filemask applied that makes sure that only images are downloaded, that subdirectories are excluded and most importantly that only files that are modified the last 24 hours are downloaded. Its website claims that it is downloaded more than 121 million times. I'm using WinSCP for downloading and uploading files. WinSCP is the most south-out file transfer application for Windows operating system. What it does is that it downloads images from my FTP, compresses them and uploads them back to the FTP. I've created a program that's supposed to run once each night.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |