質問

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