ensure_data_dir_exists call added

diff-proposed-for-bwees
Brandon Wees 2 years ago committed by GitHub
parent 35d950fa74
commit c2c8bb4de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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))

Loading…
Cancel
Save