diff options
author | fxqnlr <[email protected]> | 2024-09-08 17:21:27 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-08 17:21:27 +0200 |
commit | a8d1be9536bce6d6be2cf1586c8bac049e820d31 (patch) | |
tree | 05c5c78c11f4506ba2eaa8a0751d3d896cfb81e9 /src/config.rs | |
parent | 695556c3441f5ffd40c35387a5b45e4459684c2c (diff) | |
download | arbs-a8d1be9536bce6d6be2cf1586c8bac049e820d31.tar arbs-a8d1be9536bce6d6be2cf1586c8bac049e820d31.tar.gz arbs-a8d1be9536bce6d6be2cf1586c8bac049e820d31.zip |
save files, real last modified check (doesn't work correctly)
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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 { | |||
7 | pub root: String, | 7 | pub root: String, |
8 | pub user: Vec<String>, | 8 | pub user: Vec<String>, |
9 | pub directories: Vec<String>, | 9 | pub directories: Vec<String>, |
10 | pub custom_directories: Map<String, String> | 10 | pub custom_directories: Map<String, String>, |
11 | pub device: String, | ||
11 | } | 12 | } |
12 | 13 | ||
13 | impl Default for Config { | 14 | impl Default for Config { |
@@ -17,6 +18,9 @@ impl Default for Config { | |||
17 | user: vec![], | 18 | user: vec![], |
18 | directories: vec![], | 19 | directories: vec![], |
19 | custom_directories: Map::new(), | 20 | custom_directories: Map::new(), |
21 | device: gethostname::gethostname() | ||
22 | .into_string() | ||
23 | .expect("invalid hostname string"), | ||
20 | } | 24 | } |
21 | } | 25 | } |
22 | } | 26 | } |