Skip to content

Commit 971592d

Browse files
committed
Review
1 parent 30bfd4b commit 971592d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/uv/src/commands/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ impl<'a> OutputWriter<'a> {
232232
async fn commit(self) -> std::io::Result<()> {
233233
if let Some(output_file) = self.output_file {
234234
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?;
235+
if !parent_dir.as_os_str().is_empty() && !parent_dir.try_exists()? {
236+
fs_err::create_dir_all(parent_dir)?;
237237
}
238238
}
239239

0 commit comments

Comments
 (0)