RE: os.scandir problem

2026-03-31 Thread Anders Munch
Rob Cliffe via Python-list wrote: > When the RAM disc is empty, > os.scandir("R:") > raises a FileNotFoundError instead of (as I would have expected) returning an > empty iterator. os.scandir is a simple wrapper around FindFirstFile/FindNextFile. If FindFirstFileW("R:", "*.*") sets the f

Re: os.scandir problem

2026-03-31 Thread Roel Schroeven
Op 31/03/2026 om 9:48 schreef Anders Munch: Rob Cliffe via Python-list wrote: > When the RAM disc is empty, > os.scandir("R:") > raises a FileNotFoundError instead of (as I would have expected) returning an empty iterator. os.scandir is a simple wrapper around FindFirstFile/FindNextFile.

Re: os.scandir problem

2026-03-31 Thread Barry
> On 31 Mar 2026, at 09:28, Roel Schroeven wrote: > > There doesn't seem to be much consistency. > As you can see, FindFirstFileW() on an empty RAM disk gives an > ERROR_FILE_NOT_FOUND. Adding \ or \*.*. Doesn't help. Maybe the result changes based on what hidden files are in the root of the

Re: os.scandir problem

2026-03-31 Thread Rob Cliffe via Python-list
On 31/03/2026 11:14, Barry wrote: On 31 Mar 2026, at 09:28, Roel Schroeven wrote: There doesn't seem to be much consistency. As you can see, FindFirstFileW() on an empty RAM disk gives an ERROR_FILE_NOT_FOUND. Adding \ or \*.*. Doesn't help. Maybe the result changes based on what hidden f

Hi, Mark, with clear explanation

2026-03-31 Thread Santhosh Pavan Kumar Malla via Python-list
PyMovie and PyOTE from IOTA require Anaconda Python 3.8+ (not system Python) on Windows, and the BAT files they generate must run from the Anaconda environment where Python is found—regular CMD won't locate it. The Microsoft Store redirect happens due to Windows app aliases; disable them and pri