Question

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!

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top