From 7fe3bf3b9e470f470a260a02fb6e468c7ce84eab Mon Sep 17 00:00:00 2001 From: Philippe Llerena Date: Tue, 20 Aug 2024 12:30:57 +0200 Subject: [PATCH] default runtime dir use temp_dir Signed-off-by: Philippe Llerena --- crates/spfs/src/runtime/storage.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/spfs/src/runtime/storage.rs b/crates/spfs/src/runtime/storage.rs index e82e0bdf2..9c7a9b34d 100644 --- a/crates/spfs/src/runtime/storage.rs +++ b/crates/spfs/src/runtime/storage.rs @@ -408,12 +408,12 @@ pub struct Config { impl Default for Config { fn default() -> Self { - Self::from_root(Path::new(Self::RUNTIME_DIR)) + // Default RUNTIME_DIR + Self::from_root(temp_dir().join("spfs-runtime")) } } impl Config { - const RUNTIME_DIR: &'static str = "/tmp/spfs-runtime"; const UPPER_DIR: &'static str = "upper"; const LOWER_DIR: &'static str = "lower"; const WORK_DIR: &'static str = "work";