Comments (7)
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.
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.
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.
Merged in master 0.4.7. Still rough on the edges.
from remote-ftp.
I'm getting this error too,
#33
from remote-ftp.
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.
@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)
- Uncaught Error: EEXIST: file already exists, mkdir '~/Desktop/FTP/reklam/wp-content/themes/Eynman...
- Move /Remove file on remote doesn't sync to local
- Search and Replace in files (Ctrl + Shift + F)
- Connect button is not working/doesn't respond HOT 1
- Uncaught Error: EEXIST: file already exists, mkdir '~/Desktop/MATTEO FEDUZI/Siti nostri Keliweb/t...
- Uncaught Error: EEXIST: file already exists, mkdir 'C:/workspace\ncboard\main\templatetags'
- Administrator permissions HOT 3
- Install failing on Apple M1 HOT 2
- HTMLDocument.registerElement is deprecated. HOT 1
- @bjhaneline21291 #463 [](_1OkiPyJjXuVYQYFFABXk8A)
- Uncaught TypeError: Cannot read property 'treeView' of undefined
- remote-ftp deleting my files
- Uncaught Error: ENOENT: no such file or directory, stat 'D:/Projects Archive\Validation\index.php'
- It urgently needs an alert when replacing a existing file
- 8
- vscode version HOT 3
- Uncaught Error: EEXIST: file already exists, mkdir 'D:/GTX\Projetos\Homolog\public_html\anna-jank...
- Uncaught Error: EEXIST: file already exists, mkdir 'D:/GTX\Projetos\APM - Novo Portal\public_html...
- disconnect at timeout and tree reset
- Cannot read property "length" of undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remote-ftp.