Skip to content

Conversation

sigmaSd
Copy link
Contributor

@sigmaSd sigmaSd commented Dec 9, 2021

In my testing this source_path.strip_prefix(Component::CurDir).unwrap_or(source_path) seems to only removes ./ but if a path is already canonicalized it will fail to remove it example: /home/user/.. -> fails to removes /home/user

By using the current_dir instead, it fixes the second case, but doesn't remove ./ which is maybe a good thing.

@marcospb19 marcospb19 merged commit 35a158e into ouch-org:master Dec 14, 2021
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.

2 participants