Solution??? - Run Time Error if reading hidden dir
Blitz3D Forums/Blitz3D Programming/Solution??? - Run Time Error if reading hidden dir
| ||
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) |
| ||
Here it works with hidden directories. |
| ||
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. |