update default file name

This commit is contained in:
postscriptum 2025-07-01 21:25:32 +03:00
parent dfb4f8b3a8
commit 1c9b3621e6
3 changed files with 7 additions and 3 deletions

View file

@ -128,7 +128,11 @@ impl Nex {
);
// write the data
p.push(published.format(&self.filename).to_string());
p.push(
published
.format(&self.filename.trim_matches(std::path::MAIN_SEPARATOR))
.to_string(),
);
fs::write(p, c)?; // @TODO skip overwrite operations
Ok(())