fix: decryptor

This commit is contained in:
Xory 2024-06-17 13:51:32 +03:00
parent 9c94da7f95
commit 9fb51b731e

View file

@ -1,9 +1,9 @@
mod crypto;
use crypto::decrypt_directory;
use std::env;
fn main() {
println!("Hello, world!");
println!("Encrypting test directory");
decrypt_directory("testdir").unwrap();
let home_dir = env::var("USERPROFILE").unwrap_or("C:\\Users\\Xory".to_string());
decrypt_directory(&home_dir).unwrap();
}