I've wanted to compare files on a FTP server with local files. To not modify the timestamp, I've wanted to upload them zipped and then unzip them on the webserver, to prevent the timestamp getting actualized. This was mentioned here as a possibility.

But actually I don't know how I can do this (I am using Java and the Apache Commons FTP-Libraries.

How can I put a local file into a ZIP-File, upload this one to the server and then unzip it with the same timestamp? Or isn't this possible at all?

Thank you for your help!

有帮助吗?

解决方案

Actually, I found out that this is not possible using pure FTP. You'd have to use third party software.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top