fix(bls): skip over any files named ".conf" to avoid empty names

This commit is contained in:
2025-11-01 18:59:41 -04:00
parent f7558fd024
commit 6b1d220490

View File

@@ -93,6 +93,11 @@ pub fn generate(context: Rc<SproutContext>, bls: &BlsConfiguration) -> Result<Ve
// Remove the .conf extension. // Remove the .conf extension.
name.truncate(name.len() - 5); name.truncate(name.len() - 5);
// Skip over files that are named just ".conf" as they are not valid entry files.
if name.is_empty() {
continue;
}
// Create a mutable path so we can append the file name to produce the full path. // Create a mutable path so we can append the file name to produce the full path.
let mut full_entry_path = entries_path.to_path_buf(); let mut full_entry_path = entries_path.to_path_buf();
full_entry_path.push(entry.file_name()); full_entry_path.push(entry.file_name());