Skip to content

Commit

Permalink
bugfix: some api deprecated in path module new (#23) (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRainstorm authored Dec 1, 2024
1 parent 510ac66 commit a945280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf_white_cut/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def batch_cut_pdf(indir: Path, outdir: Path, ignore=0):
logger.info("output dir: {}", outdir)

# only get one layer of pdf files
files = [pdf.basename() for pdf in indir.listdir("*.pdf")]
files = [pdf.basename() for pdf in indir.files("*.pdf")]
logger.info("pdf files in spec folder: {}", files)

# guard dir
Expand Down

0 comments on commit a945280

Please sign in to comment.