From 8cbf5a74b3e07064de3b604b991c26c3d29e97ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 3 Apr 2017 17:18:26 +0200 Subject: [PATCH] Fix analysis backlog calculation for specific path on storage We need to convert the provided path into a local storage one first, otherwise the following scandir calls will fall on their faces. --- src/octoprint/filemanager/storage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/octoprint/filemanager/storage.py b/src/octoprint/filemanager/storage.py index aa8755db..bbc90b09 100644 --- a/src/octoprint/filemanager/storage.py +++ b/src/octoprint/filemanager/storage.py @@ -489,6 +489,9 @@ class LocalFileStorage(StorageInterface): return self.analysis_backlog_for_path() def analysis_backlog_for_path(self, path=None): + if path: + path = self.sanitize_path(path) + for entry in self._analysis_backlog_generator(path): yield entry