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