-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
fs::create_dir_all fails for directory junctions on Windows #26716
Copy link
Copy link
Closed
Labels
P-highHigh priorityHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
P-highHigh priorityHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
First reported in rust-lang/cargo#1749, it looks like if an intermediate directory is a junction on Windows then
fs::create_dir_allwill fail. Unfortunately the standard library doesn't provide away to create a junction, but a setup like this should work: