FileType yielding incorrect values

BlitzMax Forums/BlitzMax Programming/FileType yielding incorrect values

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Gabriel wrote:
At a quick glance, try replacing

Print FileType(g) + " " + g

with

Print FileType("media"+g) + " " + g


No joy. Respecifying the "media" folder is not actually necessary as the folder is represented by the variable 'dir' (via ReadDir).


Is anyone else experiencing this FileType error, or is it just me? Could someone please check if this happens with them too? I must be able to determine the presence of files and folders! Argh! :(