java - How to preserve date modified when retrieving fil using Apache FTPClient? -


i using org.apache.commons.net.ftp.ftpclient retrieving files ftp server. crucial preserve last modified timestamp on file when saved on machine. have suggestion how solve this?

you can modify timestamp after downloading file.

the timestamp can retrieved through list command, or (non standard) mdtm command.

you can see here how modify time stamp: that: http://www.mkyong.com/java/how-to-change-the-file-last-modified-date-in-java/


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -