Skip to content

Commit

Permalink
Resolves #864.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjordan committed Dec 12, 2024
1 parent 9357ea6 commit c00af94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions workbench_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3664,6 +3664,10 @@ def check_input(config, args):
print("Warning: " + message)
logging.warning(message)
for page_file_name in page_files:
# Only want files, not directories.
if os.path.isdir(os.path.join(dir_path, page_file_name)):
continue

if page_file_name.strip().lower() not in [
fn.strip().lower() for fn in config["paged_content_ignore_files"]
]:
Expand Down Expand Up @@ -8680,6 +8684,10 @@ def create_children_from_directory(config, parent_csv_record, parent_node_id):
]:
continue

# Only want files, not directories.
if os.path.isdir(os.path.join(page_dir_path, page_file_name)):
continue

filename_without_extension = os.path.splitext(page_file_name)[0]
filename_segments = filename_without_extension.split(
config["paged_content_sequence_separator"]
Expand Down

0 comments on commit c00af94

Please sign in to comment.