public static File directory ( File file ) { Validate . exists ( file ) ; if ( ! file . isDirectory ( ) ) throw new ParameterException ( "\"" + file + "\" is not a directory!" ) ; return file ; }
Checks if the given file exists and is a directory .