[New-bugs-announce] [issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

Jim Schwartz report at bugs.python.org
Wed Dec 15 09:54:30 EST 2021


New submission from Jim Schwartz <jschwar at sbcglobal.net>:

Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not.  I've enclosed sample scripts that compare the two and have returned the results.  the windows 10 registry entry to extend the path names fixes this issue (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled set to 1).  I've enclosed a scripts that proved this occurs and can be used for testing. I have a script that does the same thing using os_walk, but I can't attach two scripts to this Issue.

----------
components: IO, Tests, Windows
files: test_dir_scan_dir.py
messages: 408607
nosy: jschwar313, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not
type: crash
versions: Python 3.9
Added file: https://bugs.python.org/file50492/test_dir_scan_dir.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46084>
_______________________________________


More information about the New-bugs-announce mailing list