File extension case sensitivity
For example, in watermark.py
(but happens in other files as well), PDF files are identified as *.pdf
. Some PDFs are named *.PDF
, they are not found right now. Add .lower()
to prevent this, e.g. _.lower().endswith('.pdf')
.