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 -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -