|
|
@ -204,15 +204,16 @@ 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))
|
|
|
|
shutil.rmtree(path)
|
|
|
|
if os.path.exists(path):
|
|
|
|
self.needs_write_urgent = True
|
|
|
|
shutil.rmtree(path)
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
path = pathlib.Path(os.path.join(self.datastore_path, uuid))
|
|
|
|
path = pathlib.Path(os.path.join(self.datastore_path, uuid))
|
|
|
|
shutil.rmtree(path)
|
|
|
|
if os.path.exists(path):
|
|
|
|
|
|
|
|
shutil.rmtree(path)
|
|
|
|
del self.data['watching'][uuid]
|
|
|
|
del self.data['watching'][uuid]
|
|
|
|
|
|
|
|
|
|
|
|
self.needs_write_urgent = True
|
|
|
|
self.needs_write_urgent = True
|
|
|
|
|
|
|
|
|
|
|
|
# Clone a watch by UUID
|
|
|
|
# Clone a watch by UUID
|
|
|
|
def clone(self, uuid):
|
|
|
|
def clone(self, uuid):
|
|
|
|