public static boolean TrackmasterDirectoryCheck(boolean makeDir){
                File trackmasterDirectory = new
File(Constants.SYSTEM_TRACKMASTER_DIR);
                if(makeDir&&!trackmasterDirectory.exists()){
                        trackmasterDirectory.mkdir();
                        return true;
                }
                else if (trackmasterDirectory.exists())
                        return true;
                else
                        return false;

        }

Jeff

Visit Trackaroo.com!
Trackmaster - Motorsports Lap Timer
Dynomaster - Performance Dyno

On Jul 29, 8:22 am, "{ Devdroid }" <[email protected]> wrote:
> On 29 July 2010 17:16, Justin <[email protected]> wrote:
>
> > So how do I check to see if the directory exsits, and if it doesn't
> > creates the directory?
>
> http://tinyurl.com/2cnd5o3

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to