Skip to content

Conversation

alexcrichton
Copy link
Member

No description provided.

@rust-highfive
Copy link

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @blaenk

Curious what you think of the fallout in the tests. The most interesting gotcha for me was that ".".join("a") is "./a" instead of "a" so I had to add some special logic here and there.

@blaenk
Copy link
Contributor

blaenk commented Feb 24, 2015

Awww man, sorry about that. I was actually working on this a few weeks ago but got stalled due to missing APIs. @aturon was nice enough to expose them (e.g. is_separator, Prefix::is_verbatim), but I then forgot about this. I'll take a look right now.

fn check_windows_verbatim(p: &Path) -> bool { path::windows::is_verbatim(p) }
fn check_windows_verbatim(p: &Path) -> bool {
use std::path::Prefix;
match p.components().next() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be able to use Prefix::is_verbatim

@blaenk
Copy link
Contributor

blaenk commented Feb 24, 2015

This is excellent!

I'll try to remember to swap out the TempDir for the new one we get, when we get it. I guess I'll create an issue for it.

@alexcrichton alexcrichton force-pushed the update branch 3 times, most recently from 2e99a06 to a5765f0 Compare February 24, 2015 07:35
alexcrichton added a commit that referenced this pull request Feb 24, 2015
@alexcrichton alexcrichton merged commit 4785d40 into master Feb 24, 2015
@alexcrichton alexcrichton deleted the update branch February 24, 2015 07:36
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.

4 participants