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

std: Handle a trailing slash in create_dir_all #22742

Merged
merged 1 commit into from
Feb 25, 2015

Conversation

alexcrichton
Copy link
Member

If the filename for a path is None then we know that the creation of the
parent directory created the whole path so there's no need to retry the call to
create_dir.

Closes #22737

If the filename for a path is `None` then we know that the creation of the
parent directory created the whole path so there's no need to retry the call to
`create_dir`.

Closes rust-lang#22737
@rust-highfive
Copy link
Collaborator

r? @aturon

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

@aturon
Copy link
Member

aturon commented Feb 24, 2015

@bors: r+ 79bf783

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 25, 2015
 If the filename for a path is `None` then we know that the creation of the
parent directory created the whole path so there's no need to retry the call to
`create_dir`.

Closes rust-lang#22737
@bors
Copy link
Contributor

bors commented Feb 25, 2015

⌛ Testing commit 79bf783 with merge 4b0356e...

@bors
Copy link
Contributor

bors commented Feb 25, 2015

⌛ Testing commit 79bf783 with merge 6bc4d32...

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-linux-64-x-android-t

@bors bors merged commit 79bf783 into rust-lang:master Feb 25, 2015
@alexcrichton alexcrichton deleted the issue-22737 branch March 27, 2015 20:37
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.

fs::create_dir_all fails for path/
4 participants