Only check files (not directories) when looking for new images on file system.

pull/2087/head
grossmj 2 years ago
parent 5b478fc331
commit b2ba561c0d

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

Loading…
Cancel
Save