Skip to content

std: Fix create_dir_all for empty paths - #23383

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:fs-create-dir-all
Mar 24, 2015
Merged

bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:fs-create-dir-all

Conversation

@alexcrichton

Copy link
Copy Markdown
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
Copy Markdown
Contributor

r? @huonw

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

@alexcrichton

Copy link
Copy Markdown
Member Author

ping r?

@aturon

aturon commented Mar 23, 2015

Copy link
Copy Markdown
Contributor

@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