diff --git a/dptrp1/dptrp1.py b/dptrp1/dptrp1.py index 4b0aef2..0b9d042 100755 --- a/dptrp1/dptrp1.py +++ b/dptrp1/dptrp1.py @@ -570,7 +570,8 @@ def traverse_local_folder(path): for entry in os.scandir(path): if entry.is_dir(): traverse_local_folder(entry.path) - elif entry.name.lower().endswith(".pdf"): + # Only handle PDF files, ignore files starting with a dot. + elif entry.name.lower().endswith(".pdf") and not entry.name.startswith("."): relative_path = Path(entry.path).relative_to(local_folder) remote_path = normalize_path( (Path(remote_folder) / relative_path).as_posix()