Skip to content

Commit 3e0631a

Browse files
committed
Review
1 parent 30bfd4b commit 3e0631a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/uv/src/commands/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,7 @@ 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?;
237-
}
235+
fs_err::create_dir_all(parent_dir)?;
238236
}
239237

240238
// If the output file is an existing symlink, write to the destination instead.

0 commit comments

Comments
 (0)