src/tools/benchmark_tool/benchmark_tool/output_formatter/output_formatter.py
def clean_folder(folder):
        """
        Remove any file or folder into the specified path.

        @param folder: The path on filesystem of the folder to clean
        @type  folder: str
        @return: True on success, False on failure
        """
        for filename in os.listdir(folder):
            file_path = os.path.join(folder, filename)
            try:
                if os.path.isfile(file_path) or os.path.islink(file_path):
                    os.unlink(file_path)
                elif os.path.isdir(file_path):
                    shutil.rmtree(file_path)
            except Exception:
                return False

        return True

        Remove any file or folder into the specified path.

        @param folder: The path on filesystem of the folder to clean
        @type  folder: str
        @return: True on success, False on failure
        
Remove any file or folder into the specified path.
Remove any file or folder into the specified path .
def clean_folder(folder):
        for filename in os.listdir(folder):
            file_path = os.path.join(folder, filename)
            try:
                if os.path.isfile(file_path) or os.path.islink(file_path):
                    os.unlink(file_path)
                elif os.path.isdir(file_path):
                    shutil.rmtree(file_path)
            except Exception:
                return False
        return True
def clean_folder ( folder ) : for filename in os . listdir ( folder ) : file_path = os . path . join ( folder , filename ) try : if os . path . isfile ( file_path ) or os . path . islink ( file_path ) : os . unlink ( file_path ) elif os . path . isdir ( file_path ) : shutil . rmtree ( file_path ) except Exception : return False return True
Remove any file or folder into the specified path.
Remove any file or folder into the specified path .
"""
        Remove any file or folder into the specified path.

        @param folder: The path on filesystem of the folder to clean
        @type  folder: str
        @return: True on success, False on failure
        """
True on success, False on failure
True on success False on failure
folder
The path on filesystem of the folder to clean
The path on filesystem of the folder to clean