diff --git a/src/main.rs b/src/main.rs index 83878da..d0edbe5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,6 +41,8 @@ fn main() -> io::Result<()> { let message = String::from("assembled data"); add_cmd::run_add_cmd(&files, &message)?; + // todo: check permissions + // remove one of the files fs::remove_file(&test1_path)?; // change one of the files @@ -69,5 +71,8 @@ fn main() -> io::Result<()> { let status_string = serde_json::to_string_pretty(&status).unwrap(); println!("new status:\n{status_string}"); + fs::remove_file(&test1_path)?; + fs::remove_file(&test2_path)?; + fs::remove_file(&test3_path)?; Ok(()) } \ No newline at end of file diff --git a/src/test_directory/test1.txt.dvsmeta b/src/test_directory/test1.txt.dvsmeta index 0766703..b51b4e1 100644 --- a/src/test_directory/test1.txt.dvsmeta +++ b/src/test_directory/test1.txt.dvsmeta @@ -1,7 +1,7 @@ { "file_hash": "7f08b8682ee8258389605201d65ed6a9104eed809c000d7975186bc4cd8a3efe", "file_size": 13, - "time_stamp": "2024-03-28 16:45:54.416308859 -04:00", + "time_stamp": "2024-03-28 16:50:07.067605119 -04:00", "message": "assembled data", "saved_by": "jenna" } \ No newline at end of file diff --git a/src/test_directory/test2.txt.dvsmeta b/src/test_directory/test2.txt.dvsmeta index 60167a1..3663e34 100644 --- a/src/test_directory/test2.txt.dvsmeta +++ b/src/test_directory/test2.txt.dvsmeta @@ -1,7 +1,7 @@ { "file_hash": "74eadcf4c325be88cfc13870000e31a237228b3932c590f9d73c63bbfe8438c9", "file_size": 25, - "time_stamp": "2024-03-28 16:45:54.422660180 -04:00", + "time_stamp": "2024-03-28 16:50:07.073982922 -04:00", "message": "assembled data again", "saved_by": "jenna" } \ No newline at end of file diff --git a/src/test_directory/test3.txt.dvsmeta b/src/test_directory/test3.txt.dvsmeta index eda10ba..44df703 100644 --- a/src/test_directory/test3.txt.dvsmeta +++ b/src/test_directory/test3.txt.dvsmeta @@ -1,7 +1,7 @@ { "file_hash": "8e287466df9f3e8b1a2bd177ba15efe111aae572ea8859bb24557cfb4418a5b4", "file_size": 13, - "time_stamp": "2024-03-28 16:45:54.416808704 -04:00", + "time_stamp": "2024-03-28 16:50:07.068136128 -04:00", "message": "assembled data", "saved_by": "jenna" } \ No newline at end of file