我建议启用它.在调试可避免的问题时,它可能会节省您将来的时间.
这是一个关于我如何了解它的轶事:
在编译我的程序(Windows机器上的C#代码)期间,我开始收到以下错误:
error MSB3541: Files has invalid value "long\path\filename". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
这个错误不允许我构建我的项目,这个问题的唯一明显的解决方案是缩短我的路径/文件名.事实证明,这个bug是NTFS(Window的文件系统)中的内置限制:Why does the 260 character path length limit exist in Windows?
在NTFS文件系统中内置限制几十年后,它终于在Windows 10(https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#maximum-path-length-limitation)中得到修复(基于Unix的系统没有它),但它没有自动启用,需要注册表(或组策略) )设置来做到这一点. Python选项允许您为Python库禁用它,为您节省很多麻烦.
请注意启用此选项将,
a)在使用长文件/目录名称和路径时,破坏使用旧版Windows 10及更低版本的系统上程序的兼容性.
b)在使用长文件/目录名称和路径时,在未启用此选项的Windows 10计算机上中断程序.