c# - Retain time stamp of a downloaded file in FTP -
i'm able download file ftp server. want save file retaining time of file in ftp server. how can in c#?
example: file name: file1.gz date: 8/16/2014 8:00:00 am
i'll download file1.gz today 8/18/2014 want save date of download 8/16/2014 8:00:00 am.
what mean how can save make file date same file date in ftp server.
you can set creation date of file this:
file.setcreationtime("file1.gz", somedate);
more usage , example can found here.
Comments
Post a Comment