Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 lib magic、trID 和其他一些库编写程序,使用 C/C++ 语言。但是当我的输入文件长度超过 260 时,我遇到了一个问题,我需要添加前缀 \?\ 以便 Windows 可以处理它。但是当使用 lib magic 检测文件类型时,mime 结果会是 inode/blockdevice,magicResult 是 block special (204/204)。有没有办法处理这个问题?lib trID 可以接受前缀 \?\ 并返回正确的结果,但 lib magic 不能。