Search java library for directory synchronization

I am looking for a java library (not a tool) that will synchronize the local directory with the directory on the server (ftp). I need to put a set of files on the server, and then I want all clients to have (upload if necessary) the same version of these files.

I noticed that VFS depends on the file modification time. I need a library that will use a mechanism like hash / delta. Something like rsync, but lib is not a tool.

+5
source share
1 answer

Commons / VFS is an abstraction for different file systems and protocols (including FTP) with a common API. It has an ant task called SyncTaskthat synchronizes two virtual file systems (one or more of which can be a real file system). Ant task documents are here . Perhaps you can use this or see the base code .

+1
source

All Articles