def getFilesWithFileTypeWithoutWords(fileType, words=[], fileInDirectory=''):
 filesWithFileType = []
 for filePath in getFilePaths(fileInDirectory):
  if isFileWithFileTypeWithoutWords(fileType, filePath, words):
   filesWithFileType.append(filePath)
 filesWithFileType.sort()
 return filesWithFileType

def getFilesWithFileTypeWithoutWords ( fileType , words = [ ] , fileInDirectory = '' ) : filesWithFileType = [ ] for filePath in getFilePaths ( fileInDirectory ) : if isFileWithFileTypeWithoutWords ( fileType , filePath , words ) : filesWithFileType . append ( filePath ) filesWithFileType . sort ( ) return filesWithFileType
get files which have a given file type .