From 7532072d50bd030bb7fd3b900af571049ef5378b Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Tue, 11 Oct 2022 20:31:15 +0200 Subject: [PATCH] add check if data folder is a directory --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index c877c01c..126674d1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -303,6 +303,10 @@ async fn check_data_folder() { } exit(1); } + if !path.is_dir() { + error!("Data folder '{}' is not a directory.", data_folder); + exit(1); + } if is_running_in_docker() && std::env::var("I_REALLY_WANT_VOLATILE_STORAGE").is_err()