004 Multi-library Support #54

Merged
cameron merged 19 commits from 004-multi-library into master 2026-04-21 01:55:23 +00:00
Showing only changes of commit 7becbc0737 - Show all commits

View File

@@ -568,7 +568,14 @@ pub async fn list_photos<TagD: TagDao, FS: FileSystemAccess>(
path.display()
)
});
let relative_str = relative.to_str().unwrap().to_string();
// Normalize separators to '/' so downstream
// lookups (tags, EXIF, insights) that store
// rel_paths with forward slashes still match
// on Windows.
let relative_str = relative
.to_str()
.unwrap()
.replace('\\', "/");
if md.is_file() {
files.push(relative_str);
@@ -589,7 +596,7 @@ pub async fn list_photos<TagD: TagDao, FS: FileSystemAccess>(
path.display()
)
});
files.push(relative.to_str().unwrap().to_string());
files.push(relative.to_str().unwrap().replace('\\', "/"));
}
}
}