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
Post a Comment