diff options
Diffstat (limited to 'src/buildstream/storage/directory.py')
-rw-r--r-- | src/buildstream/storage/directory.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buildstream/storage/directory.py b/src/buildstream/storage/directory.py index 2b3a85be3..f9ea4044a 100644 --- a/src/buildstream/storage/directory.py +++ b/src/buildstream/storage/directory.py @@ -306,6 +306,16 @@ class Directory: """ raise NotImplementedError() + def rename(self, src: List[str], dest: List[str]): + """ Rename a file, symlink or directory. If destination path exists + already and is a file or empty directory, it will be replaced. + + Args: + *src: Source path components. + *dest: Destination path components. + """ + raise NotImplementedError() + def _create_empty_file(self, *paths): with self.open_file(*paths, mode="w"): pass |