@staticmethod<EOL><INDENT>def load_folder_files(folder_path, recursive=True):<DEDENT>
if isinstance(folder_path, (list, set)):<EOL><INDENT>files = []<EOL>for path in set(folder_path):<EOL><INDENT>files.extend(FileUtils.load_folder_files(path, recursive))<EOL><DEDENT>return files<EOL><DEDENT>if not os.path.exists(folder_path):<EOL><INDENT>return []<EOL><DEDENT>file_list = []<EOL>for dirpath, dirnames, filenames in os.walk(folder_path):<EOL><INDENT>filenames_list = []<EOL>for filename in filenames:<EOL><INDENT>if not filename.endswith(('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')):<EOL><INDENT>continue<EOL><DEDENT>filenames_list.append(filename)<EOL><DEDENT>for filename in filenames_list:<EOL><INDENT>file_path = os.path.join(dirpath, filename)<EOL>file_list.append(file_path)<EOL><DEDENT>if not recursive:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return file_list<EOL>
load folder path, return all files in list format.
        @param
            folder_path: specified folder path to load
            recursive: if True, will load files recursively