Java File Exist doesExistsInside(File src, String fileName)

Here you can find the source of doesExistsInside(File src, String fileName)

Description

Checks if a file named "fileName" exists inside given src file

License

Open Source License

Parameter

Parameter Description
src The src file
fileName The name of the to-search file

Return

The result

Declaration

public static boolean doesExistsInside(File src, String fileName) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    /**//ww  w  . j a v a2  s.  co m
     * Checks if a file named "fileName" exists inside given src file
     *
     * @param src      The src file
     * @param fileName The name of the to-search file
     * @return The result
     */
    public static boolean doesExistsInside(File src, String fileName) {
        return new File(src, fileName).exists();
    }
}

Related

  1. doesExist(String fname)
  2. fileExist(String _FileName, String _Path)
  3. fileExist(String cmdPath)
  4. fileExist(String p_filename)
  5. fileExist(String path)