We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30bfd4b commit 971592dCopy full SHA for 971592d
1 file changed
crates/uv/src/commands/mod.rs
@@ -232,8 +232,8 @@ impl<'a> OutputWriter<'a> {
232
async fn commit(self) -> std::io::Result<()> {
233
if let Some(output_file) = self.output_file {
234
if let Some(parent_dir) = output_file.parent() {
235
- if !parent_dir.as_os_str().is_empty() && !parent_dir.is_dir() {
236
- fs_err::tokio::create_dir(parent_dir).await?;
+ if !parent_dir.as_os_str().is_empty() && !parent_dir.try_exists()? {
+ fs_err::create_dir_all(parent_dir)?;
237
}
238
239
0 commit comments