-
Notifications
You must be signed in to change notification settings - Fork 39
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
Zero length in prior Path2 list file for first-sync to sftp remote #46
Comments
It appears that turing:MYSQL is empty. Per the README --first-sync section:
I would suggest that you use the --check-access feature and place your check file in this base/root directory to meet this requirement. I'll close this for now, assuming no changes needed. Let me know if issue #44 is good to close. |
Please see the following run log:
This may be unique to SFTP hosts. It appears that the output of the
rclone lsl remote:Path
is empty if this directory does not exist or is empty on the remote host.In my case this is it:
I am submitting a proposed solution in writing as you may want to handle this in a different way. What follows are the problem spots and a simple solution. I hope this is of assistance.
Around line 327 to modify the appropriate tests to read
if not first_sync and len(path2_XXX) == 0:
As well around line 432 you need to prevent a division by zero in this case.
if not force and len(path2_prior) > 0 and float( etc...
The text was updated successfully, but these errors were encountered: