Skip to content

kzlk/FinderFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Search Application - GL BaseCamp C/C++ 2023

Done ✓

  • 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.

Prerequisites

Before using the File Search Application, ensure you have the following prerequisites:

  • C++ compiler (g++)
  • Make utility

Installation

To install the File Search Application, follow these steps:

  1. Clone this repository to your local machine:
git clone https://github.com/kzlk/FinderFile.git
  1. Build the application using the provided Makefile:
make 
  1. 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).
  1. 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.

About

Terms of reference for GL BaseCamp C++ 2023 to find the file on LocalHost

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors