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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -