We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc66536 + 01f3fe9 commit ce5c67fCopy full SHA for ce5c67f
1 file changed
crates/wkg/src/main.rs
@@ -322,6 +322,13 @@ impl GetArgs {
322
.context("Failed to resolve output parent dir")?
323
};
324
325
+ if !parent_dir.exists() {
326
+ anyhow::bail!(
327
+ "output directory {:?} does not exist; create it first or choose a different path",
328
+ parent_dir
329
+ );
330
+ }
331
+
332
let (tmp_file, tmp_path) =
333
tempfile::NamedTempFile::with_prefix_in(".wkg-get", parent_dir)?.into_parts();
334
tracing::debug!(?tmp_path, "Created temporary file");
0 commit comments