Open Nelsonkenneth opened 1 year ago
here a function to delete unrequired files from pdf so it can be easier to convert
def delete_ppms(): for file in os.listdir(PATH): if '.ppm' in file or '.DS_Store' in file: try: os.remove(PATH + file) except FileNotFoundError: pass
here a function to delete unrequired files from pdf so it can be easier to convert
def delete_ppms(): for file in os.listdir(PATH): if '.ppm' in file or '.DS_Store' in file: try: os.remove(PATH + file) except FileNotFoundError: pass