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

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