diff options
-rwxr-xr-x | seivot | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -381,7 +381,8 @@ class Seivot(cliapp.Application): self.report = Report(prog) if self.settings['use-existing']: - os.rmdir(self.live_data) + if os.path.exists(self.live_data): + shutil.rmtree(self.live_data) shutil.copytree(self.settings['use-existing'], self.live_data, symlinks=True) amount = self.file_sizes(self.live_data) |