bversion/storage/journaling_filesystem.py
def new_backup(self, src: str):
        """ Create a new backup file allocation """

        backup_id_file = p.join(self.backup_dir, '.bk_idx')

        backup_num = int(file_or_default(backup_id_file, b'1'))
        backup_name = str(backup_num) + "_" + os.path.basename(src)
        backup_num += 1

        file_put_contents(backup_id_file, bytes(str(backup_num), encoding='utf8'))
        return p.join(self.backup_dir, backup_name)
 Create a new backup file allocation 
Create a new backup file allocation
Create a new backup file allocation
def new_backup(self, src: str):
        backup_id_file = p.join(self.backup_dir, '.bk_idx')
        backup_num = int(file_or_default(backup_id_file, b'1'))
        backup_name = str(backup_num) + "_" + os.path.basename(src)
        backup_num += 1
        file_put_contents(backup_id_file, bytes(str(backup_num), encoding='utf8'))
        return p.join(self.backup_dir, backup_name)
def new_backup ( self , src : str ) : backup_id_file = p . join ( self . backup_dir , '.bk_idx' ) backup_num = int ( file_or_default ( backup_id_file , b'1' ) ) backup_name = str ( backup_num ) + "_" + os . path . basename ( src ) backup_num += 1 file_put_contents ( backup_id_file , bytes ( str ( backup_num ) , encoding = 'utf8' ) ) return p . join ( self . backup_dir , backup_name )
Create a new backup file allocation
Create a new backup file allocation
""" Create a new backup file allocation """
self
src
str