Removed confirmation message. Yolo.
All checks were successful
pdf2text test / Compile (push) Successful in 34s
All checks were successful
pdf2text test / Compile (push) Successful in 34s
This commit is contained in:
parent
cb22a368c5
commit
ec1497eef5
3
pdf2text
3
pdf2text
@ -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"):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user