svoorakk / FileFinder

Java module to recursively search a folder for a file. Finds only a exact match of the file name, ignoring case. Returns only the first match.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FileFinder

Code to recursively search a folder for a file.

  • Finds only a exact match of the file name, ignoring case.
  • Returns only the first match.

Depends on

- java.io.File;
- java.io.IOException;
- org.apache.commons.io.FileUtils;

Use

FileFinder ff = new FileFinder();
File fOut = ff.findFile(folderName, fileName);

About

Java module to recursively search a folder for a file. Finds only a exact match of the file name, ignoring case. Returns only the first match.

License:MIT License


Languages

Language:Java 100.0%