寻找目录同步的java库 [英] Looking for java library for directories synchronization

查看:114
本文介绍了寻找目录同步的java库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个java库(而不是工具),它将提供同步本地目录与服务器(ftp)上的目录。我需要的是将一组文件放在服务器上,然后我希望所有的客户端(需要下载)同一版本的这些文件。



我注意到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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆