barman.storage.file_stats module#
- class barman.storage.file_stats.FileStats(size, last_modified)View on GitHub#
Bases:
object
- __init__(size, last_modified)View on GitHub#
Arbitrary timezone set to UTC. There is probably possible improvement here. :param size: file size in bytes :type size: int :param last_modified: Time of last modification in seconds :type last_modified: int
- get_last_modified(datetime_format='%Y-%m-%d %H:%M:%S')View on GitHub#
- Parameters:
datetime_format (str) – Format to apply on datetime object
- get_size()View on GitHub#