From ab7f99e061e54924899b778e929dd2e17c8792d9 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Fri, 6 Sep 2024 13:47:47 +0200 Subject: add root index and directory creation --- src/storage.rs | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 src/storage.rs (limited to 'src/storage.rs') 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 @@ -use std::{fs::File, io::Write}; - -use crate::backup::Backup; - -pub fn save_index(backup: Backup) { - let mut f = File::create("./index.json").unwrap(); - f.write_all(&serde_json::to_vec(&backup).unwrap()).unwrap(); -} -- cgit v1.2.3