- App find file by "name"
- Search started from root "/" directory. (or Disk "C:" on Windows OS)
- App creates new Searching Thread for each sub-directory in root directory, but no more than 8 Execution Threads.
- Thread who will find needed file has to print Full Path to the file notify all the rest threads to stop searching.
- Logic "to search file" placed into static library.
- Application just uses this library to find files in a fast way.
- Makefile for compilation/linking instruction.
Before using the File Search Application, ensure you have the following prerequisites:
- C++ compiler (g++)
- Make utility
To install the File Search Application, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/kzlk/FinderFile.git- Build the application using the provided Makefile:
make - Run the application:
./FileSearcher <file_name> [<search_directory>]<file_name>: The name of the file you want to find.[<search_directory>](optional): The directory where the search should start. If not provided, the search begins from the root directory ("/" on Unix-like systems or "C:" on Windows OS).
- The application will start the search process from the root directory and display the full path to the first occurrence of the file with the given name. If the file is not found, an appropriate message will be displayed.