fix(images): Fix symlink support in image inventory

This commit is contained in:
Cristi committed 2026-09-29 15:42:49 +03:00
1 parent 42d30651da
commit 2e12775911
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ def contained_path(path, root):
def fingerprint(path):
info = os.stat(path, follow_symlinks=False)
info = os.stat(path, follow_symlinks=True)
if not stat.S_ISREG(info.st_mode):
raise OSError(f"Not a regular image file: {path}")
return stat_fingerprint(info)