diff --git a/gns3server/db/tasks.py b/gns3server/db/tasks.py index f6ec4125..48050eb7 100644 --- a/gns3server/db/tasks.py +++ b/gns3server/db/tasks.py @@ -90,7 +90,7 @@ async def get_computes(app: FastAPI) -> List[dict]: def image_filter(change: Change, path: str) -> bool: - if change == Change.added: + if change == Change.added and os.path.isfile(path): if path.endswith(".tmp") or path.endswith(".md5sum") or path.startswith("."): return False header_magic_len = 7