Fix dir renaming not picked up by zola serve

Fix #1324
This commit is contained in:
Vincent Prouillet 2021-02-02 21:31:17 +01:00
parent 3b210d648c
commit cf86e93986

View file

@ -476,9 +476,11 @@ pub fn serve(
if is_ignored_file(&site.config.ignored_content_globset, &path) {
continue;
}
if is_temp_file(&path) || path.is_dir() {
if path.is_file() && is_temp_file(&path) {
continue;
}
// We only care about changes in non-empty folders
if path.is_dir() && is_folder_empty(&path) {
continue;