|
|
@ -204,11 +204,12 @@ class ChangeDetectionStore:
|
|
|
|
# GitHub #30 also delete history records
|
|
|
|
# GitHub #30 also delete history records
|
|
|
|
for uuid in self.data['watching']:
|
|
|
|
for uuid in self.data['watching']:
|
|
|
|
path = pathlib.Path(os.path.join(self.datastore_path, uuid))
|
|
|
|
path = pathlib.Path(os.path.join(self.datastore_path, uuid))
|
|
|
|
|
|
|
|
if os.path.exists(path):
|
|
|
|
shutil.rmtree(path)
|
|
|
|
shutil.rmtree(path)
|
|
|
|
self.needs_write_urgent = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
path = pathlib.Path(os.path.join(self.datastore_path, uuid))
|
|
|
|
path = pathlib.Path(os.path.join(self.datastore_path, uuid))
|
|
|
|
|
|
|
|
if os.path.exists(path):
|
|
|
|
shutil.rmtree(path)
|
|
|
|
shutil.rmtree(path)
|
|
|
|
del self.data['watching'][uuid]
|
|
|
|
del self.data['watching'][uuid]
|
|
|
|
|
|
|
|
|
|
|
|