Tuesday, March 16, 2010

Check whether a directory exists or not (in java)

public boolean isDirectory(String folder)
        java.io.File directoryName = new java.io.File(folder);
        return directoryName.isDirectory();
    }  //END OF isDirectory

1 comment:

  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training from India . Nowadays Java has tons of job opportunities on various vertical industry.