363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 | |
def move(self, target): |
""" move this path to target. """ |
-> if target.relto(self): |
raise py.error.EINVAL(target, "cannot move path into a subdirectory of itself") |
try: |
self.rename(target) |
except py.error.EXDEV: |
self.copy(target) |
self.remove() | |