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: Fix create_dir_all for empty paths #23383

Merged
merged 1 commit into from
Mar 24, 2015

Conversation

alexcrichton
Copy link
Member

Recent changes in path semantics meant that if none of the components in a
relative path existed as a part of a call to create_dir_all then the call
would fail as create_dir("") would be attempted and would fail with an OS
error.

Closes #23624

Recent changes in path semantics meant that if none of the components in a
relative path existed as a part of a call to `create_dir_all` then the call
would fail as `create_dir("")` would be attempted and would fail with an OS
error.
@rust-highfive
Copy link
Collaborator

r? @huonw

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

@alexcrichton
Copy link
Member Author

ping r?

@aturon
Copy link
Member

aturon commented Mar 23, 2015

@bors: r+ 9c906da

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 23, 2015
@bors bors merged commit 9c906da into rust-lang:master Mar 24, 2015
@alexcrichton alexcrichton deleted the fs-create-dir-all 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 if root dir does not exist
5 participants