-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fs::create_dir_all fails for directory junctions on Windows #26716
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
Labels
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Comments
The Cargo report claims this was a regression, so I'm going to nominate this. |
I suspect |
triage: P-high |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jul 10, 2015
Previously on Windows a directory junction would return false from `is_dir`, causing various odd behavior, specifically calls to `create_dir_all` might fail when they would otherwise continue to succeed. Closes rust-lang#26716
bors
added a commit
that referenced
this issue
Jul 11, 2015
Previously on Windows a directory junction would return false from `is_dir`, causing various odd behavior, specifically calls to `create_dir_all` might fail when they would otherwise continue to succeed. Closes #26716
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
First reported in rust-lang/cargo#1749, it looks like if an intermediate directory is a junction on Windows then
fs::create_dir_all
will fail. Unfortunately the standard library doesn't provide away to create a junction, but a setup like this should work:The text was updated successfully, but these errors were encountered: