寻找目录同步的java库 [英] Looking for java library for directories synchronization
问题描述
我注意到VFS取决于文件修改的时间。我需要的是一个使用hash / delta这样的机制的库。像rsync,但lib不是工具。
Commons / VFS 是具有通用API的不同文件系统和协议(包括FTP)的抽象。它有一个蚂蚁任务,名为 SyncTask
同步两个虚拟文件系统(其中一个或多个可以是真正的文件系统)。 Ant任务文档在这里。也许你可以使用它或查看底层代码。
I'm looking for a java library (not tool) that will provide synchronizing local directory with directory on server (ftp). What I need is to put a set of files on server and then I want all clients to have (download when required) the same version of these files.
I noticed that VFS depends on time of file modification. What I need is a library that will use mechanism like hash/delta. Something like rsync, but lib not tool.
Commons / VFS is an abstraction over different file systems and protocols (including FTP) with a common API. It has an ant task called SyncTask
that synchronizes two virtual file systems (one or more of which can be a real file system). Ant task docs are here. Perhaps you can either use that or look into the underlying code.
这篇关于寻找目录同步的java库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!