<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 8, 2015 at 12:01 AM, vineet garg <span dir="ltr"><<a href="mailto:grgvineet@gmail.com" target="_blank">grgvineet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">There is QFileSystemWatcher in Qt</div></blockquote><div><br></div><div>Yeah we are already using that for this purpose but problem is that it only watch on limited no. of files. It uses inotify(in linux) for that. But I think that limitation can be removed as baloo also keep watch over large number of files and it asks permission to cross that limit. So, I'll either have to check baloo code or ping Vishesh for that.</div><div>Anyway check other solution given below.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>and a FileObserver class in android which can monitor a specified directory so that we don't need to calculate and compare hash each time. I have never used them, but looking at the documentation it should work fine. Plus there can be periodical packets like in every one hour with list of files with their hashes to update any file if needed or this can be only when the device is added to sync any file added when the device was not reachable.<br><br></div>Cheers!<br></div>Vineet<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div>On Mon, Sep 7, 2015 at 9:06 PM, Aleix Pol <span dir="ltr"><<a href="mailto:aleixpol@kde.org" target="_blank">aleixpol@kde.org</a>></span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On Mon, Sep 7, 2015 at 9:44 AM, Ashish Bansal<br><<a href="mailto:bansal.ashish096@gmail.com" target="_blank">bansal.ashish096@gmail.com</a>> wrote:<br>> Hi everyone,<br>><br>> Last week, I had done some work on File Synchronization plugin in<br>> kdeconnect-kde. I have tested it on two computers, and it seems to work up<br>> to some extent \o/<br>><br>> You can check it out in filesync branch. I have stated all the problems in<br>> current implementation, in the last commit message.<br>> Well I just to inform everyone about it, so that someone doesn't re-do<br>> already done work as Albert, Aleix and David have plans to work on<br>> kdeconnect during this period.<br>><br>> Anyway Quoting from the commit message :<br>> Basic Implementation of File Synchronization plugin<br>> Well It's just a basic implementation and works upto some extent. It<br>> currently have some problems like QFileSystemWatcher can watch over only<br>> limited number of files, files with extension ".part" cannot be transferred,<br>> transfers the temporary files created by some applications (text editors),<br>> just replaces the older file with newer file."<br>><br>> I was quite busy with college stuff from last week, so didn't get time to<br>> work on it. It would be great if someone can come up with ideas to resolve<br>> these problems.<br><br>Hi,<br>I've looked into your branch. It looks good, I think it would be good<br>if you created a Review Request so we can polish the current state of<br>the patch and build upon. At the moment it looks like it should work<br>provided some issues are fixed. It's an promising start.<br><br>The hard part will be to nail down the ::compareAndRequestFiles<br>algorithm and make sure it's called when it should.<br><br>Have you made any research on how others do it? (e.g. dropbox, owncloud, etc)<br></blockquote></div></div></blockquote><div><br></div><div>Dropbox uses rsync for that purpose and rsync splits up the file into pieces, calculate their hash and transfers that part whose hash doesn't match. So, we can either use this method or just use use rsync over ssh.</div><div><br></div><div>For desktop to desktop, one of the those will start ssh server and other one would connect to it and use rsync.</div><div><br></div><div>For android, I have found java library for ssh. We can use that for same purpose.</div><div>It's surely gonna speed up the file transfer as rsync is best at sync.</div><div><br></div><div>What do you think about using rsync?<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><br>Cheers!<br>Aleix<br></div>_______________________________________________<br>KDEConnect mailing list<br><a href="mailto:KDEConnect@kde.org" target="_blank">KDEConnect@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/kdeconnect" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kdeconnect</a><br></blockquote></div><br></div></blockquote></div><div><b><br>Regards,</b></div><div><b>Ashish Bansal</b></div><div><b><a href="http://ashish-bansal.in/" target="_blank">http://ashish-bansal.in</a></b></div></div></div>