def get_all_files_of_folder()

in src/parsers/unoc_parser.py [0:0]


    def get_all_files_of_folder(cls, folder_path):
        file_paths = []
        count_frames = False
        frames = 0
        if len(list(os.walk(folder_path))) == 0:
            return []

        for file_name in list(os.walk(folder_path))[0][2]:
            if file_name in cls.ignore_files:
                continue
            if file_name.endswith(".bvh"):
                file_paths.append(os.path.join(folder_path, file_name))

                if count_frames:
                    with open(file_paths[-1]) as f:
                        line = ""
                        while "Frames: " not in line:
                            line = f.readline()
                        frames += int(line.split(":    ")[1])

        if count_frames:
            print(f"frames: {frames}")

        return file_paths