From 8daa35b5a74d7ecaf053e6f1a6b9dd41a5006318 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 5 Dec 2024 20:19:38 -0500 Subject: [PATCH] Fix recursive search when beneath top level directory --- src/files.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files.rs b/src/files.rs index 63a9804..e6feb99 100644 --- a/src/files.rs +++ b/src/files.rs @@ -70,7 +70,7 @@ pub async fn list_photos( .map(|tagged_files| { tagged_files .into_iter() - .filter(|f| f.starts_with(search_path)) + .filter(|f| f.starts_with(&format!("{}/", search_path).to_string())) .collect::>() }) .inspect(|files| debug!("Found {:?} files", files.len()))