def getBrushFileList():
        """
        Returns a list of strings of all .preset files in the brushes directory.
        """
        list = []
        presetdownload = os.listdir(directories.brushesDir)
        for p in presetdownload:
            if p.endswith('.preset'):
                list.append(os.path.splitext(p)[0])
        if '__temp__' in list:
            list.remove('__temp__')
        return list

        Returns a list of strings of all .preset files in the brushes directory.
        
editortools/brush.py