public boolean accept ( File file ) { if ( caseSensitive ) { return file . getName ( ) . startsWith ( string0 ) ; } else { return file . getName ( ) . toLowerCase ( ) . startsWith ( string0 . toLowerCase ( ) ) ; } }
Accepts a File if its filename startsWith a specific string .