From 9fb51b731e613e577187b2e97b3367ea43052c32 Mon Sep 17 00:00:00 2001 From: Xory Date: Mon, 17 Jun 2024 13:51:32 +0300 Subject: [PATCH] fix: decryptor --- src/decrypt.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decrypt.rs b/src/decrypt.rs index 3fc2d5a..f88b819 100644 --- a/src/decrypt.rs +++ b/src/decrypt.rs @@ -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(); }