No . or .. on NextFile
Blitz3D Forums/Blitz3D Programming/No . or .. on NextFile
| ||
I don't want to have a . or .. when I scan for folders. |
| ||
do a check for '.'If Not Left(f$,1) = "." Then EndIf |
| ||
LoadDir$[](dir$, skip_dots=True) ?? |
| ||
Yan, isn't that BlitzMax? ;) |
| ||
LOL...Oops. 8o] |
| ||
Pretty easy:tdir = ReadDir("modules") Repeat f$ = NextFile(tdir) If f$ = "" Then Exit If f$ <> "." And f$ <> ".." Then If FileType("modules\"+f$) = 2 Then Game_Mod$ = "modules\"+f$ DebugLog Game_Mod$ EndIf EndIf Forever-- Byteemoz |