(self, path)
| 385 | self._delete_dir_contents("/", False) |
| 386 | |
| 387 | def delete_file(self, path): |
| 388 | # fs.rm correctly raises IsADirectoryError when `path` is a directory |
| 389 | # instead of a file and `recursive` is not set to True |
| 390 | if not self.fs.exists(path): |
| 391 | raise FileNotFoundError(path) |
| 392 | self.fs.rm(path) |
| 393 | |
| 394 | def move(self, src, dest): |
| 395 | self.fs.mv(src, dest, recursive=True) |
no outgoing calls