From 789c93163567ee1941981b7eade4ed326b053d28 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Sun, 9 Mar 2025 10:35:50 +0100 Subject: Better formatting --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index a7166ef..cd54bd8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -461,9 +461,11 @@ async fn api( let decoded_path = percent_decode_str(&path) .decode_utf8() .map_err(|e| RuntimeError::ParseError(path.clone(), e.to_string()))?; + // Convert the relative dir to an absolute path on the system. let sanitized_path = file_utils::sanitize_path(&*decoded_path, true) .expect("Expected a path to directory"); + let full_path = config .path .canonicalize() -- cgit v1.2.3