becky_cli/becky/backups/backup.py
def print_files_at_path(self, path, timestamp):
        """
        Prints all files/folders backed up at a specific path at a specific time.
        Shows all files that were backed up AT OR BEFORE the timestamp. Only shows
        the newest edition of each file. Can show both file and a folder even if they
        share their name.
        """
        applicable_files = [f for f in self.saved_files if f['type'] == 'file' and f['directory'] == path and f['date'] <= timestamp]
        applicable_folders = [f for f in self.saved_files if f['type'] == 'directory' and f['directory'] == path and f['date'] <= timestamp]
        files_to_print = self._get_newest_versions(applicable_files)
        folders_to_print = self._get_newest_versions(applicable_folders)
        to_print = files_to_print + folders_to_print

        for f in to_print:
            print(f"{f['name']} --- {f['date']}")

        Prints all files/folders backed up at a specific path at a specific time.
        Shows all files that were backed up AT OR BEFORE the timestamp. Only shows
        the newest edition of each file. Can show both file and a folder even if they
        share their name.
        
Prints all files/folders backed up at a specific path at a specific time.
Shows all files that were backed up AT OR BEFORE the timestamp. Only shows
the newest edition of each file. Can show both file and a folder even if they
share their name.
Prints all files / folders backed up at a specific path at a specific time . Shows all files that were backed up AT OR BEFORE the timestamp . Only shows the newest edition of each file . Can show both file and a folder even if they share their name .
def print_files_at_path(self, path, timestamp):
        applicable_files = [f for f in self.saved_files if f['type'] == 'file' and f['directory'] == path and f['date'] <= timestamp]
        applicable_folders = [f for f in self.saved_files if f['type'] == 'directory' and f['directory'] == path and f['date'] <= timestamp]
        files_to_print = self._get_newest_versions(applicable_files)
        folders_to_print = self._get_newest_versions(applicable_folders)
        to_print = files_to_print + folders_to_print
        for f in to_print:
            print(f"{f['name']} --- {f['date']}")
def print_files_at_path ( self , path , timestamp ) : applicable_files = [ f for f in self . saved_files if f [ 'type' ] == 'file' and f [ 'directory' ] == path and f [ 'date' ] <= timestamp ] applicable_folders = [ f for f in self . saved_files if f [ 'type' ] == 'directory' and f [ 'directory' ] == path and f [ 'date' ] <= timestamp ] files_to_print = self . _get_newest_versions ( applicable_files ) folders_to_print = self . _get_newest_versions ( applicable_folders ) to_print = files_to_print + folders_to_print for f in to_print : print ( f"{f['name']} --- {f['date']}" )
Prints all files/folders backed up at a specific path at a specific time.
Prints all files / folders backed up at a specific path at a specific time .
"""
        Prints all files/folders backed up at a specific path at a specific time.
        Shows all files that were backed up AT OR BEFORE the timestamp. Only shows
        the newest edition of each file. Can show both file and a folder even if they
        share their name.
        """
self
path
timestamp