doc string for thumbnail generation
All checks were successful
Build Multiarch Container Image / call-reusable-workflow (push) Successful in 29m13s

This commit is contained in:
Sebastian Hugentobler 2024-06-26 22:37:05 +02:00
parent 7deb8e5bfc
commit cafb81b9e2
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0

View File

@ -51,6 +51,7 @@ fn hash_to_path(hash: GenericArray<u8, U32>, cache_path: &Path) -> Result<PathBu
.join(remaining_segment))
}
/// Create a thumbnail for `cover_path` at `thumbnail_path`.
fn create_thumbnail(cover_path: &Path, thumbnail_path: &Path) -> Result<(), CacheError> {
debug!("creating thumbnail for {}", cover_path.to_string_lossy());
let folders = thumbnail_path