summaryrefslogtreecommitdiff
path: root/seivot
diff options
context:
space:
mode:
Diffstat (limited to 'seivot')
-rwxr-xr-xseivot3
1 files changed, 2 insertions, 1 deletions
diff --git a/seivot b/seivot
index 26f9e53..df9388f 100755
--- a/seivot
+++ b/seivot
@@ -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)