some little bits of debug info

This commit is contained in:
Chris Cochrun 2023-09-21 17:12:51 -05:00
parent b2eeb04855
commit 08cc744a31
2 changed files with 4 additions and 4 deletions

View file

@ -536,9 +536,10 @@ mod service_item_model {
#[qinvokable]
pub fn save(mut self: Pin<&mut Self>, file: QUrl) -> bool {
println!("rust-save-file: {file}");
let lfr = fs::File::create(
&file.to_local_file().unwrap_or_default().to_string(),
);
let path =
file.to_local_file().unwrap_or_default().to_string();
println!("path: {:?}", path);
let lfr = fs::File::create(&path);
if let Ok(lf) = &lfr {
println!("archive: {:?}", lf);
let encoder = Encoder::new(lf, 3).unwrap();