Fix recursive search when beneath top level directory
This commit is contained in:
@@ -70,7 +70,7 @@ pub async fn list_photos<TagD: TagDao, FS: FileSystemAccess>(
|
||||
.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::<Vec<String>>()
|
||||
})
|
||||
.inspect(|files| debug!("Found {:?} files", files.len()))
|
||||
|
||||
Reference in New Issue
Block a user