004 Multi-library Support #54
11
src/files.rs
11
src/files.rs
@@ -568,7 +568,14 @@ pub async fn list_photos<TagD: TagDao, FS: FileSystemAccess>(
|
|||||||
path.display()
|
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() {
|
if md.is_file() {
|
||||||
files.push(relative_str);
|
files.push(relative_str);
|
||||||
@@ -589,7 +596,7 @@ pub async fn list_photos<TagD: TagDao, FS: FileSystemAccess>(
|
|||||||
path.display()
|
path.display()
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
files.push(relative.to_str().unwrap().to_string());
|
files.push(relative.to_str().unwrap().replace('\\', "/"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user