We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
current_dir
/var/lib
1 parent a501350 commit be8e019Copy full SHA for be8e019
uplink/src/base/mod.rs
@@ -1,3 +1,4 @@
1
+use std::env::current_dir;
2
use std::path::PathBuf;
3
use std::time::{SystemTime, UNIX_EPOCH};
4
use std::{collections::HashMap, fmt::Debug};
@@ -34,7 +35,9 @@ fn default_file_size() -> usize {
34
35
}
36
37
fn default_persistence_path() -> PathBuf {
- PathBuf::from("/var/lib/uplink")
38
+ let mut path = current_dir().expect("Couldn't figure out current directory");
39
+ path.push(".persistence");
40
+ path
41
42
43
pub fn clock() -> u128 {
uplink/src/lib.rs
@@ -104,9 +104,6 @@ pub mod config {
104
keep_alive = 30
105
network_timeout = 30
106
107
- # Create empty streams map
108
- [streams]
109
-
110
# Downloader config
111
[downloader]
112
actions = []
0 commit comments