Giter Site home page Giter Site logo

Comments (7)

grenierdev avatar grenierdev commented on May 14, 2024

I'm open to suggestion, I never found a method that work. I did try to do one based on file size but the result was sometime false negative. Are you aware of a robust method to sync 2 folder?

from remote-ftp.

rafaelrp avatar rafaelrp commented on May 14, 2024

unfortunately i don't know any method that work for sync, i know that a plugin for Sublime has this feature, the plugin is SFTP Sublime, maybe can get some ideas from this plugin.

Maybe work with date and time should work.

from remote-ftp.

grenierdev avatar grenierdev commented on May 14, 2024

I've uploaded some code I had done before in a separated branch. It only compare files based on their file size. Still rough and if you'd like to test it out, be sure to use it on a dummy project.

Comparing files with their modification date is quite puzzling as local time differ from remote (timezone, misconfiguration on local/server, etc)

from remote-ftp.

grenierdev avatar grenierdev commented on May 14, 2024

Merged in master 0.4.7. Still rough on the edges.

from remote-ftp.

rafaelrp avatar rafaelrp commented on May 14, 2024

I'm getting this error too,
#33

from remote-ftp.

hatzopoulos avatar hatzopoulos commented on May 14, 2024

@mgrenier

On the topic of comparing files.

Perhaps in .ftpconfig you could add a timezone offset setting like Filezilla has which then users can use to input server time difference to local time. That could mitigate some of the issues with using date checks. Reference: https://wiki.filezilla-project.org/Server_timezone_offset

Another more complicated idea, would be to use something like rsync's --checksum option to do a slower comparison, but for that you'll probably need rsync on the path and use a wrapper and I don't think there is rsync for windows, and in any case certainly not installed by default. Another software I've seen that does FTP syncing very well was ultracompare

from remote-ftp.

grenierdev avatar grenierdev commented on May 14, 2024

@hatzopoulos That's a nice idea! I had though along those line : on sync, create a empty file on remote, check the difference with local time, remove empty file, use difference in the time comparison.

Haven't got much time these days, will look into this path next time!

from remote-ftp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.