ReadDir/NextFile on Windows 7

Archives Forums/BlitzPlus Bug Reports/ReadDir/NextFile on Windows 7

Daryl(Posted 2014) [#1]
I've also sent this to support. I'm developing a game on Blitzmax. I'm using the latest version of BlitzMax and MaxIDE.

On Mac ReadDir and NextFile work as expected, but on my Windows 7 machine (Enterprise SP1) with exactly the same code it returns no files. For example the following doesn't work (it returns nothing):

Local dir:Int =ReadDir(CurrentDir())
If Not dir RuntimeError "failed to read current directory"
Local t$=NextFile( dir )
If t="" Exit
If t="." Or t=".." Continue
Print t
CloseDir dir

Is this a bug or known issue? Is it something to do with permissions? Anybody got any ideas?

Daryl(Posted 2014) [#2]
Realised this in the wrong place...will repost.