On Fri Mar 14 10:11:36 2025 +0000, Yongjie Yao wrote:
I have encountered a problem, how should I verify the long path restriction issue on Windows? I have enabled long paths on virtual machines win10 21H2 and win11 24H2 respectively, and set the value of LongPathsEnable in “HKEYLOCAL\SYSTEM\CurrentControlSet\Control\FileSystem” to 1. However, whether using Python 3.13's open() function, Neither the copy command nor notepad.exe can create a file with a path length of 500. I also tried adding the following content to the manifests of wine's notepad.exe and kernel32_test.exe, but still couldn't create files with path lengths exceeding 260 on Windows 10 and Windows 11.
<application xmlns="urn:schemas-microsoft-com:asm.v3"> <windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings"> <ws2:longPathAware>true</ws2:longPathAware> </windowsSettings> </application>
Did you follow everything shown on the MSDN page?