From be467c807402c7660f6c03168232dd3a275cdb99 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 18 Oct 2024 21:13:50 -0400 Subject: [PATCH] infinite recursion? --- src/command/build/runner.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/command/build/runner.rs b/src/command/build/runner.rs index 42deb7b..b8361dc 100644 --- a/src/command/build/runner.rs +++ b/src/command/build/runner.rs @@ -4,6 +4,7 @@ use std::sync::Arc; use std::sync::Mutex; use super::stylesheet::Stylesheet; +use super::walk_fs::walk_fs; use crate::cli::parameters::BuildArgs; use crate::command::build::render::SiteRenderer; use crate::config::Config; @@ -60,6 +61,8 @@ async fn get_output_directory(config: &Config) -> Result { } async fn get_post_directories(config: &Config) -> Result, CustomError> { + walk_fs(config.get_posts_directory(), async |entry| Ok(true)).await?; + let mut ret = Vec::new(); if !config.get_posts_directory().exists() { return Ok(ret);