Ignore image detection for IOU user libraries in image directory

This commit is contained in:
grossmj 2022-07-20 16:39:24 +02:00
parent d022b211dc
commit 7f5ad8e225

View File

@ -91,7 +91,8 @@ async def get_computes(app: FastAPI) -> List[dict]:
def image_filter(change: Change, path: str) -> bool:
if change == Change.added:
if path.endswith(".tmp") or path.endswith(".md5sum") or path.startswith("."):
if path.endswith(".tmp") or path.endswith(".md5sum") or path.startswith(".") or \
"/lib/" in path or "/lib64/" in path:
return False
header_magic_len = 7
with open(path, "rb") as f: