No . or .. on NextFile

Blitz3D Forums/Blitz3D Programming/No . or .. on NextFile

xmlspy(Posted 2006) [#1]
I don't want to have a . or .. when I scan for folders.




Kev(Posted 2006) [#2]
do a check for '.'


If Not Left(f$,1) = "." Then

EndIf




Yan(Posted 2006) [#3]
LoadDir$[](dir$, skip_dots=True)

??


Regular K(Posted 2006) [#4]
Yan, isn't that BlitzMax? ;)


Yan(Posted 2006) [#5]
LOL...Oops. 8o]


Byteemoz(Posted 2006) [#6]
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