diff options
author | fxqnlr <[email protected]> | 2024-09-06 13:47:47 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-06 13:47:47 +0200 |
commit | ab7f99e061e54924899b778e929dd2e17c8792d9 (patch) | |
tree | 644dc766f954b7a5e04cf7658821a5b5694f764b /src/storage.rs | |
parent | 3e1cb020d5449849b37874f91cadfa4a9c878747 (diff) | |
download | arbs-ab7f99e061e54924899b778e929dd2e17c8792d9.tar arbs-ab7f99e061e54924899b778e929dd2e17c8792d9.tar.gz arbs-ab7f99e061e54924899b778e929dd2e17c8792d9.zip |
add root index and directory creation
Diffstat (limited to 'src/storage.rs')
-rw-r--r-- | src/storage.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/storage.rs b/src/storage.rs deleted file mode 100644 index b9e8de9..0000000 --- a/src/storage.rs +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | use std::{fs::File, io::Write}; | ||
2 | |||
3 | use crate::backup::Backup; | ||
4 | |||
5 | pub fn save_index(backup: Backup) { | ||
6 | let mut f = File::create("./index.json").unwrap(); | ||
7 | f.write_all(&serde_json::to_vec(&backup).unwrap()).unwrap(); | ||
8 | } | ||