Commit 59abab78 authored by Amrita Deb's avatar Amrita Deb
Browse files

Merge branch 'rohlfing-fix-case-sensitive-file-ending' into 'master'

Fix case-sensitive file ending checks

See merge request !35
parents 1834a797 65c622cf
......@@ -77,7 +77,7 @@ def main(args):
starttime = time.time()
pdf_folder = os.listdir(infolder)
pdf_files = [_ for _ in pdf_folder
if _.endswith(".pdf")]
if _.lower().endswith(".pdf")]
print("""
Available PDFs to be encrypted:
- {}
......
......@@ -283,7 +283,7 @@ def main(args):
starttime = time.time()
pdf_folder = os.listdir(infolder)
pdf_files = [_ for _ in pdf_folder
if _.endswith(".pdf") and matnum_utils.starts_with_matnum(_)]
if _.lower().endswith(".pdf") and matnum_utils.starts_with_matnum(_)]
print("""
Available PDFs to be watermarked:
- {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment