PDF session/allmypdfs.py: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

28 January 2025

  • curprev 12:0312:03, 28 January 2025Manetta talk contribs 925 bytes +925 Created page with "<syntaxhighlight lang="python"> import os # ------ # myfolder = "/home/mb/Downloads" # # items = os.listdir(myfolder) # print(items) # # for item in items: # if item.endswith(".pdf"): # print("this is a PDF: " + item) # # howmany = len(items) # print(f"I have { howmany } PDFs in myfolder: { myfolder }") # ------ # # myfolder = "/home/mb/" # # pdfs = [] # # for root, dirs, files in os.walk(myfolder): # # print("-------") # # print("root:", root) #..."