barman.storage.local_file_manager module#

class barman.storage.local_file_manager.LocalFileManagerView on GitHub#

Bases: FileManager

_abc_impl = <_abc._abc_data object>#
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

get_file_content(file_path, file_mode='rb')View on GitHub#
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

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

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