local mydir:String="media/"
local dir:Int = ReadDir(mydir)
Local g:String
Repeat
g = NextFile(dir)
If g = "" Then Exit
If g = "." Or g = ".." Then Continue
Print FileType(mydir+""+g) + " " + mydir+""+g
Forever
CloseDir(dir)
Basically, 'g' needs to have a fullpath.