skip directories with .md in them

This commit is contained in:
James Ravenscroft 2024-07-20 15:20:09 +00:00
parent 3dc34f6c01
commit b5b5d021aa
2 changed files with 5 additions and 1 deletions

Binary file not shown.

View File

@ -20,6 +20,10 @@ def main(input_dir: str, output_dir, ignore=None, dry_run=False):
for file in files: for file in files:
if os.path.isdir(file):
print(f"Skipping {file}... is a directory")
continue
if ignore is not None: if ignore is not None:
skip_file = False skip_file = False