diff --git a/chb/cmdline/XInfo.py b/chb/cmdline/XInfo.py index 2d383365..6b84623b 100644 --- a/chb/cmdline/XInfo.py +++ b/chb/cmdline/XInfo.py @@ -79,7 +79,7 @@ def __init__(self) -> None: def discover(self, path: str, xfile: str) -> None: name = os.path.join(path, xfile) - ftype = subprocess.run(["file", name], stdout=subprocess.PIPE) + ftype = subprocess.run(["file", "-L", name], stdout=subprocess.PIPE) filetype = ftype.stdout.decode("utf-8") self.fileinfo["md5"] = get_md5(name) self.fileinfo["path"] = path