protected void checkDir(File dir) throws IOException
{
if (!dir.exists())
dir.mkdir();
if (!dir.isDirectory() )
throw new IOException("Working dir specified is not a directory");
if (!dir.canWrite())
throw new IOException("Working dir is not writable");
}
shared items
Friday, September 5, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment