문제

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