Skip to content

std: Fix create_dir_all for empty paths #23383

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

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
Contributor

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
# 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.

fs::create_dir_all fails if root dir does not exist
5 participants