From a8d1be9536bce6d6be2cf1586c8bac049e820d31 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Sun, 8 Sep 2024 17:21:27 +0200 Subject: save files, real last modified check (doesn't work correctly) --- src/config.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 625118a..439c17c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -7,7 +7,8 @@ pub struct Config { pub root: String, pub user: Vec, pub directories: Vec, - pub custom_directories: Map + pub custom_directories: Map, + pub device: String, } impl Default for Config { @@ -17,6 +18,9 @@ impl Default for Config { user: vec![], directories: vec![], custom_directories: Map::new(), + device: gethostname::gethostname() + .into_string() + .expect("invalid hostname string"), } } } -- cgit v1.2.3