private static File getCowfile ( final String folder , final String cowName ) { File [ ] cowfiles = getCowFiles ( folder ) ; for ( File cowfile : cowfiles ) { if ( cowfile . getName ( ) . equals ( cowName ) ) { return cowfile ; } } return null ; }
Get a cowfile by name from the given directory .