We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dced51 commit 8b488bcCopy full SHA for 8b488bc
1 file changed
‎octoprint_file_check/__init__.py‎
@@ -290,7 +290,13 @@ def _save_last_check_info(self):
290
def _load_last_check_info(self):
291
path = os.path.join(self.get_plugin_data_folder(), "last_check_info.json")
292
if not os.path.isfile(path):
293
- return {}
+ files = self._file_manager.list_files("local", recursive=False)
294
+ if not len(files.get("local", {})):
295
+ # no files there, mark things as up to date
296
+ self._save_last_check_info()
297
+ else:
298
+ # there are files, we can't take that shortcut
299
+ return {}
300
301
try:
302
with open(
0 commit comments