please see https://github.com/rust-lang/rust/pull/110285#issuecomment-1521201953 for more details
create_dir_all_bare