diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-07-19 19:15:12 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-07-19 19:15:12 +0100 |
commit | 08f90669dc744265b9097921ee88aede1208f165 (patch) | |
tree | f114ece72e3bffc816b0a74cd5211340af4548c8 | |
parent | fb7c5d3dd14d7352ab06987ab62bcb149558f7e8 (diff) | |
download | seivot-08f90669dc744265b9097921ee88aede1208f165.tar.gz |
Fix removal of pre-existing live data tree.
-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) |