diff options
Diffstat (limited to 'rdiff-backup/rdiff_backup/rpath.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index de89026..c383d03 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -913,6 +913,10 @@ class RPath(RORPath): """Return similar RPath but with new index""" return self.__class__(self.conn, self.base, index) + def new_index_empty(self, index): + """Return similar RPath with given index, but initialize to empty""" + return self.__class__(self.conn, self.base, index, {'type': None}) + def open(self, mode, compress = None): """Return open file. Supports modes "w" and "r". |