Solution??? - Run Time Error if reading hidden dir

Blitz3D Forums/Blitz3D Programming/Solution??? - Run Time Error if reading hidden dir

Cold Storage(Posted 2005) [#1]
How can I tell a directory is hidden?
I have a program that reads through the current directory and allows you to then move down the tree into the next directory.

Sadly, hidden directories cause a Run Time Error : Directory Does Not Exist.

How can I trap this? Can I get file attributes somehow, or is there another way without writing a C++ .dll or running a DOS script?

HELP! ;O)


jfk EO-11110(Posted 2005) [#2]
Here it works with hidden directories.


Cold Storage(Posted 2005) [#3]
Yes. My bad! :O)

It's actually "System Volume Information" that is the bad guy here... reports as a directory using FileType so when your program tries to use NextFile$ on it.. it crashes.

I get around it by checking if ReadDir$ is zero.