forums

TNT Basic Forums > Programming Q&A
how to check if folder exists?
< Last Thread     Next Thread >
Author
Thread        Post A Reply

09-28-2006 09:43

Posted by:
appleide

Click Here to Email appleide   Find more posts by appleide

I want to check if my game's prefs folder is present. but, there is only a file exists command. And this command returns true, even if the folder doesn't exist!! It only returns false if folder exists, but file absent. Help!!

"if File Exists (":InterPlanetaryWarfare:Preferences")"

09-28-2006 12:26

Posted by:
someone

Location:
Quebec ( Canada )

Click Here to Email someone   Find more posts by someone

i couldn't get it to work... (though maybe someone else can help you)

perhaps add a feature request at the sourceforge tnt page for a 'folder exists' command.

09-28-2006 13:16

Posted by:
appleide

Click Here to Email appleide   Find more posts by appleide

As a temporary work around... I've worked out:


Whenever a folder is created, create another text file, that says to your App "THIS FOLDER EXISTS HERE". So, without those tiny text files, your folder won't be recognised...

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.