Currently pdsfs stores its cache in the XDG basedir data directory. However as per spec (https://specifications.freedesktop.org/basedir-spec/latest/) this directory is for essential user specific data. ie. not for caching purposes. XDG basedir defines a seperate cache directory intended for caches that should be used instead.
+1
-1
src/main.rs
+1
-1
src/main.rs
···
113
113
114
114
let dirs = BaseDirectories::new();
115
115
116
-
let dir = dirs.get_data_home().expect("$HOME is absent").join("pdsfs");
116
+
let dir = dirs.get_cache_home().expect("$HOME is absent").join("pdsfs");
117
117
tokio::fs::create_dir_all(&dir).await?;
118
118
119
119
let file = dir.join(&id.did);