Skip to content
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 panic caused by path prefix on Windows #187

Merged
merged 1 commit into from
Mar 11, 2023

Conversation

pkolaczk
Copy link
Owner

Paths on Windows can have a multi-component root.
E.g. C:\ is encoded as two components
'C:' and ''. Unfortunately Path::root() and
Path::strip_root() didn't account for that properly and stripped only the first component instead of stripping the whole root. That led to incorrect path processing in fclones move command and panic.

Fixes #185

Paths on Windows can have a multi-component root.
E.g. C:\ is encoded as two components
'C:' and '\'. Unfortunately Path::root() and
Path::strip_root() didn't account for that properly
and stripped only the first component instead of stripping the
whole root. That led to incorrect path processing in
`fclones move` command and panic.

Fixes #185
@pkolaczk pkolaczk merged commit 1b5bbee into main Mar 11, 2023
@pkolaczk pkolaczk deleted the fix-panic-in-move-on-windows branch March 11, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fclone move <target> fails in windows 10
1 participant