Removed confirmation message. Yolo.
All checks were successful
pdf2text test / Compile (push) Successful in 34s

This commit is contained in:
retoor 2024-11-22 20:55:08 +01:00
parent cb22a368c5
commit ec1497eef5

View File

@ -25,9 +25,6 @@ if not source_path.exists():
raise Exception(f"{source_path.absolute()} does not exist.") raise Exception(f"{source_path.absolute()} does not exist.")
print("This script will convert all your pdf files to txt files in the same directory.") print("This script will convert all your pdf files to txt files in the same directory.")
if input("Continue? [Y/n]: ").strip().lower() in ["n", "no"]:
print("Operation cancelled.")
exit(0)
for file in pathlib.Path(source_path).glob("*.pdf"): for file in pathlib.Path(source_path).glob("*.pdf"):