class ValidityTools {

	public static void checkAccessibilityOfDirs ( String ... args ) {
		for ( String name : args ) {
			File f = new File( name );
			if ( f.canRead( ) && f.canWrite( ) && f.isDirectory( ) ) continue;
			else {
				System.out.println( "The required directory : " + f.getAbsolutePath( ) + " is not accessible." );
				System.exit( 1 );
			}
		}
	}

}