New submission from Jim Schwartz <jsch...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue46084>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to