commit 7532072d50bd030bb7fd3b900af571049ef5378b
parent 382e6107fe79c0828c7efeb1e05b81cf2a0f2572
Author: Stefan Melmuk <stefan.melmuk@gmail.com>
Date: Tue, 11 Oct 2022 20:31:15 +0200
add check if data folder is a directory
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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()