b.t._FileMover(object) : class documentation

Part of bzrlib.transform View In Hierarchy

Known subclasses: bzrlib.tests.test_transform.TestTransformRollback.ExceptionFileMover

Moves and deletes files for TreeTransform, tracking operations
Method __init__ Undocumented
Method rename Rename a file from one path to another.
Method pre_delete Rename a file out of the way and mark it for deletion.
Method rollback Reverse all renames that have been performed
Method apply_deletions Apply all marked deletions
def __init__(self):
Undocumented
def rename(self, from_, to):
Rename a file from one path to another.
def pre_delete(self, from_, to):
Rename a file out of the way and mark it for deletion.

Unlike os.unlink, this works equally well for files and directories.
:param from_: The current file path
:param to: A temporary path for the file
def rollback(self):
Reverse all renames that have been performed
def apply_deletions(self):
Apply all marked deletions
API Documentation for Bazaar, generated by pydoctor at 2019-07-17 00:29:20.