New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature-request] command for (re-)creating missing indices for files present both locally and remotely #249
Comments
Thanks @js-ojus for reporting this and for this suggestion. Great idea, I started working on one about three hours ago but I had to go out. I'll keep plugging at it so please watch this space. |
Oh btw, if pulling is tedious there are options that allows you to exclude certain operations e.g |
It is a pleasure working with you, @odeke-em! You are so responsive! |
Thank you for the kind words, it is a pleasure working with you too. |
Hello @js-ojus sorry for the late reply, I was occupied yesterday hanging out with a friend who is immigrating to another country but I got sometime this morning and I have implemented a PR here: #256. It contains sample usage. Am off to bed now but will be up in 5 hours or so and will merge it in. |
Hello @js-ojus, please get the latest from master. This issue was addressed by PR #256. Sample usage in the README as well as that PR. |
Thanks so much @odeke-em! I shall try this, and let you know the outcome. |
Creation of indices has taken place as intended. Good thus far! Now, running To illustrate using an example, the local file has 'mtime' 2007-11-08 18:30:02, while the corresponding copy in GDrive has 2015-06-15 17:32:56 (the time when For those files whose indices were created properly upon the first It will be good if Alternatively, such a sub-command could exist for The overriding criteria here is that MD5 sums match, but 'mtime's do not! Other cases are already handled quite well. Should you think that it is reasonable, I can create an issue for the same. |
Hello @js-ojus, thanks for the investigation. I think this feedback is more related to the issue that spun this request than to this issue itself. If we could move the discussion there, that'd be great. Unless some bug just crept, drive always updates the mtime derived from local file itself and this has been working since I made this fork, you can even try this out yourself by moving in and old file, pushing it upstream, making sure there are no more changes, then doing a |
This is in relation to #236.
It will be quite useful to have a command that checks for missing indices, and (re-)creates them as appropriate. The following table examines some possible scenarios. In all cases, the assumption is that for the file in consideration, the index is missing in
.gd
.Currently, the only way to get the indices to become sane again appears to be a full
pull
(orpush
as appropriate). That, however, could be very inconvenient, should the directories involved be large.The text was updated successfully, but these errors were encountered: