barman.storage.file_manager module#

class barman.storage.file_manager.FileManagerView on GitHub#

Bases: object

_abc_impl = <_abc._abc_data object>#
abstract file_exist(file_path)View on GitHub#

Tests if file exists :param file_path: File path :type file_path: string

Returns:

True if file exists False otherwise

Return type:

bool

abstract get_file_content(file_path, file_mode='rb')View on GitHub#
abstract get_file_list(path)View on GitHub#

List all files within a path, including subdirectories :param path: Path to analyze :type path: string :return: List of file path :rtype: list

abstract get_file_stats(file_path)View on GitHub#

Tests if file exists :param file_path: File path :type file_path: string

Returns:

Return type:

FileStats

abstract save_content_to_file(file_path, content, file_mode='wb')View on GitHub#