mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 19:45:29 +00:00
change temporary path to a more unique name
This commit is contained in:
parent
3d717ec3bc
commit
83f28cf64a
@ -248,7 +248,9 @@ fn smart_unpack(
|
|||||||
question_policy: QuestionPolicy,
|
question_policy: QuestionPolicy,
|
||||||
) -> crate::Result<ControlFlow<(), usize>> {
|
) -> crate::Result<ControlFlow<(), usize>> {
|
||||||
assert!(output_dir.exists());
|
assert!(output_dir.exists());
|
||||||
let temp_dir = tempfile::tempdir_in(output_dir)?;
|
let temp_dir = tempfile::Builder::new()
|
||||||
|
.prefix(".tmp-ouch-")
|
||||||
|
.tempdir_in(output_dir)?;
|
||||||
let temp_dir_path = temp_dir.path();
|
let temp_dir_path = temp_dir.path();
|
||||||
|
|
||||||
info_accessible(format!(
|
info_accessible(format!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user