diff --git a/src/notesync.py b/src/notesync.py index 0a9a9b5..052e564 100644 --- a/src/notesync.py +++ b/src/notesync.py @@ -16,7 +16,7 @@ def main(input_dir: str, output_dir, ignore=None, dry_run=False): public_files = [] - files = glob.glob(os.path.join(input_dir,"**","*.md")) + glob.glob(os.path.join(input_dir,"*.md")) + files = set(glob.glob(os.path.join(input_dir,"**","*.md"), recursive=True) + glob.glob(os.path.join(input_dir,"*.md"), recursive=True)) for file in files: