Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

os::make_absolute() and WindowsPath Refactoring and Fixes #5023

Merged
merged 3 commits into from
Feb 26, 2013

Conversation

mitsuhiko
Copy link
Contributor

This pull request moves the logic from os::make_absolute() into the path module and fixes path joining for Windows. It does this by adding an unsafe_join() function that implements the operating system's path joining semantics.

Additionally it also adds an is_restricted() method to the trait which will return true if the path points to a windows device file.

@catamorphism
Copy link
Contributor

Deleted my r+, not sure if that will make bors not build it (or if it already saw the r+).

@mitsuhiko
Copy link
Contributor Author

The old logic for joining did not account for windows. I felt like moving that into make_absolute would mean that people would have to reimplement the logic if they want to make it absolute to a different bade path than the processes working directory.

bors added a commit that referenced this pull request Feb 26, 2013
…rphism

This pull request moves the logic from os::make_absolute() into the path module and fixes path joining for Windows.  It does this by adding an ``unsafe_join()`` function that implements the operating system's path joining semantics.

Additionally it also adds an ``is_restricted()`` method to the trait which will return true if the path points to a windows device file.
@bors bors closed this Feb 26, 2013
@bors bors merged commit c77c5c4 into rust-lang:incoming Feb 26, 2013
bors added a commit to rust-lang-ci/rust that referenced this pull request May 2, 2020
Omit doc safety/errors header checking for main

This omits checking `main` methods, which are not usually documented in the way the others are.

changelog: none
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants