aboutsummaryrefslogtreecommitdiff
path: root/src/storage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage.rs')
-rw-r--r--src/storage.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/storage.rs b/src/storage.rs
index e069875..05a4a5d 100644
--- a/src/storage.rs
+++ b/src/storage.rs
@@ -30,7 +30,8 @@ impl Device {
30 trace!("check for storage STORAGE_PATH=\"{}\"", Self::STORAGE_PATH); 30 trace!("check for storage STORAGE_PATH=\"{}\"", Self::STORAGE_PATH);
31 let sp = Path::new(Self::STORAGE_PATH); 31 let sp = Path::new(Self::STORAGE_PATH);
32 if !sp.exists() { 32 if !sp.exists() {
33 warn!("device storage path doesn't exist, creating it"); 33 let current_dir = std::env::current_dir()?;
34 warn!(?current_dir, "device storage path doesn't exist, creating it");
34 create_dir_all(Self::STORAGE_PATH)?; 35 create_dir_all(Self::STORAGE_PATH)?;
35 }; 36 };
36 37