add a basic generate() test

This commit is contained in:
Nick Pegg 2025-05-04 15:50:34 -07:00
parent e605ba84e5
commit 5f2490ff0c
8 changed files with 244 additions and 25 deletions

View file

@ -35,7 +35,6 @@ impl TryFrom<&PathBuf> for AlbumDir {
let entry_path = entry?.path();
if entry_path.is_file() {
println!("Found file: {}", entry_path.display());
if let Some(filename) = entry_path.file_name() {
if filename == "description.txt" {
description = fs::read_to_string(entry_path)?;
@ -65,8 +64,6 @@ impl TryFrom<&PathBuf> for AlbumDir {
}
}
} else if entry_path.is_dir() {
println!("Found dir: {}", entry_path.display());
if let Some(dirname) = entry_path.file_name().and_then(|n| n.to_str()) {
if dirname.starts_with("_") {
// Likely a templates or static dir