MCPcopy Index your code
hub / github.com/geekcomputers/Python / getPictures

Method getPictures

image2pdf/image2pdf.py:33–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 return sorted(os.listdir(self.directory))
32
33 def getPictures(self):
34 pictures = list(filter(self.filter, self.sortFiles()))
35
36 if not pictures:
37 print(f" [Error] there are no pictures in the directory: {self.directory} ")
38 return False
39
40 print("Found picture(s) :")
41 return pictures
42
43 def selectPictures(self, pictures):
44 """Allow user to manually pick each picture or merge all"""

Callers 1

convertPicturesMethod · 0.95

Calls 1

sortFilesMethod · 0.95

Tested by

no test coverage detected