mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-08 17:15:32 +00:00
ensure_data_dir_exists call added
This commit is contained in:
@@ -205,8 +205,7 @@ class model(dict):
|
||||
output_path = os.path.join(self.__datastore_path, self['uuid'])
|
||||
|
||||
# Incase the operator deleted it, check and create.
|
||||
if not os.path.isdir(output_path):
|
||||
os.mkdir(output_path)
|
||||
self.ensure_data_dir_exists()
|
||||
|
||||
snapshot_fname = os.path.join(self.watch_data_dir, "previous.txt")
|
||||
logging.debug("Saving previous text {}".format(snapshot_fname))
|
||||
|
||||
Reference in New Issue
Block a user