java - Synchronizing directories over FTP -


i'm working on app (android) instances of application share data each other via ftp server. ftp has been used because router i'm working can ftp server using plugged in usb flash drive.

one function app perform sync data other instances. @ moment syncing additive. data on server isn't on phone gets transferred phone. data on phone isn't on server gets transferred server. idea data created on phones can mutually shared.

i've looked @ java rsync libraries. however, of ones have seen either unmaintained, poorly documented, or both. also, rsync isn't going work given hardware i'm operating @ moment.

i have been using apache commons net ftpclient. made class builds on top of offers methods push , pull data server. however, if there exists library (or approach) out there has been tested thoroughly or offers more functionality, use it. there?

what attempting beyond scope of ftp protocol. not impossible, in order need parse (implementation specific) output of list command extract timestamps , file sizes. apache ftpclient library can this, though degree work depends on target ftp server returns.

note real 'rsync' command uses checksums minimize transfers. ftp-based solution can't this.

related:


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -