| Index: Tools/Scripts/webkitpy/common/system/filesystem_mock.py
|
| diff --git a/Tools/Scripts/webkitpy/common/system/filesystem_mock.py b/Tools/Scripts/webkitpy/common/system/filesystem_mock.py
|
| index 3e06339ec438d31a612ff83684ecbaf6378e1e16..0dbf74d8a4ab3ff7d4007104bcd280c2085616e4 100644
|
| --- a/Tools/Scripts/webkitpy/common/system/filesystem_mock.py
|
| +++ b/Tools/Scripts/webkitpy/common/system/filesystem_mock.py
|
| @@ -268,12 +268,16 @@ class MockFileSystem(object):
|
| norm_path = self.dirname(norm_path)
|
|
|
| def move(self, source, destination):
|
| - if self.files[source] is None:
|
| + if not self.exists(source):
|
| self._raise_not_found(source)
|
| - self.files[destination] = self.files[source]
|
| - self.written_files[destination] = self.files[destination]
|
| - self.files[source] = None
|
| - self.written_files[source] = None
|
| + if self.isfile(source):
|
| + self.files[destination] = self.files[source]
|
| + self.written_files[destination] = self.files[destination]
|
| + self.files[source] = None
|
| + self.written_files[source] = None
|
| + return
|
| + self.copytree(source, destination)
|
| + self.rmtree(source)
|
|
|
| def _slow_but_correct_normpath(self, path):
|
| return re.sub(re.escape(os.path.sep), self.sep, os.path.normpath(path))
|
|
|