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

No comments:

Post a Comment