code: 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);
  	}
docs: Checks if the given file contains in the parent file.
  
  @param fileToSearch
  The parent directory to search.
  @param pathname
  The file to search.
  @return 's true if the file exists in the parent directory otherwise false.