note-gen
note-gen copied to clipboard
refactor(backup): replace system zip/unzip with pure Rust implementation
Replace system-dependent zip/unzip commands with the zip crate for cross-platform compatibility and better error handling.
Fix two bugs when restore backup files, see #771
I also write five unit test in backup.rs, it will import tempfile crates in dev-dependencies. And use walkdir crate to rewrite copy_dir_recursive function .If you prefer the previous version , I will change it and file a new PR
Adding zip and walkdir crates will increase the final binary size by approximately 1MB on Windows