public static boolean containsFile ( final File fileToSearch , final String pathname ) { final String [ ] allFiles = fileToSearch . list ( ) ; if ( allFiles == null ) { return false ; } final List < String > list = Arrays . asList ( allFiles ) ; return list . contains ( pathname ) ; }
Checks if the given file contains in the parent file .