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

lib/path: Fix @go.canonicalize_path bugs, add @go.add_parent_dir_if_relative_path #206

Merged
merged 3 commits into from
Sep 4, 2017

Conversation

mbland
Copy link
Owner

@mbland mbland commented Sep 4, 2017

@go.canonicalize_path now canonicalizes the empty string as the empty path, and removes leading ./ components.

The need for @go.add_parent_dir_if_relative_path became apparent while creating the upcoming @go.copy_files_safely.

Also adds a test case to ensure that trailing '/.' strings are resolved.
The need for this became apparent while creating the upcoming
`@go.copy_files_safely`.
@mbland mbland added this to the v1.7.0 milestone Sep 4, 2017
@mbland mbland self-assigned this Sep 4, 2017
@mbland mbland added this to Doing in v1.7.0 Sep 4, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 94.926% when pulling b43aeb3 on path-lib into 19403c9 on master.

@mbland mbland merged commit 8f83587 into master Sep 4, 2017
@mbland mbland deleted the path-lib branch September 4, 2017 20:58
@mbland mbland moved this from Doing to Done in v1.7.0 Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants