-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: rename and fetch_data progress report #12
Conversation
.unlink(&src.strip_prefix(&base).unwrap()) | ||
.map_err(|_| CloudErrorKind::InvalidRequest)?; | ||
} | ||
(false, true) => Err(CloudErrorKind::NotSupported)?, // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's wrong with the old impl w/ self.create_dir_all
and self.create_file
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's simpler way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, a lot of the impl can be greatly simplified and probably replaced with a single call to fs::copy
, but this functionality shouldn't be removed from the example.
Hi @ok-nick, any problems left? |
This fix looks weird but it works well.
|
Ah, so when the target isn't in scope and the source is, it will invoke If that's the case, I wonder if it'd be better to replace the |
It will not inoke |
How is the file removed from the remote then, if not invoked by Also, we should keep the existing functionality for moving a file from outside the sync filter to inside the sync filter rather than keeping it as |
I pushed a branch named |
I think I can't fix this problem, thanks for your reviews |
No description provided.