mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
@@ -223,6 +223,10 @@ impl cli::Session {
|
|||||||
append = false;
|
append = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Some(dir) = path.parent() {
|
||||||
|
let _ = fs::create_dir_all(dir);
|
||||||
|
}
|
||||||
|
|
||||||
let format = self.output_format.map(Ok).unwrap_or_else(|| {
|
let format = self.output_format.map(Ok).unwrap_or_else(|| {
|
||||||
if path.extension().is_some_and(|ext| ext == "txt") {
|
if path.extension().is_some_and(|ext| ext == "txt") {
|
||||||
Ok(Format::Txt)
|
Ok(Format::Txt)
|
||||||
|
|||||||
Reference in New Issue
Block a user