mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-03 09:10:11 +03:00
fix(images): Fix symlink support in image inventory
This commit is contained in:
parent
42d30651da
commit
2e12775911
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user