https://github.com/without-eyes/filesearcher
[C/C++ GL BaseCamp] Qualifying Technical Test 2024
https://github.com/without-eyes/filesearcher
cpp file-search filesystem linux static-library windows
Last synced: 2 months ago
JSON representation
[C/C++ GL BaseCamp] Qualifying Technical Test 2024
- Host: GitHub
- URL: https://github.com/without-eyes/filesearcher
- Owner: without-eyes
- License: mit
- Created: 2024-03-02T09:42:03.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-06T13:02:26.000Z (about 2 years ago)
- Last Synced: 2025-10-08T09:42:54.492Z (8 months ago)
- Topics: cpp, file-search, filesystem, linux, static-library, windows
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Application (App) to find file on Local Host - [C/C++ GL BaseCamp] Qualifying Technical Test 2024
## Task conditions
========================================================================================
1. App has to find file by "name".
2. Search has to be started from root "/" directory. (or Disk "C:\" on Windows OS)
3. To make this search faster - App creates new Searching Thread for each sub-directory in
root directory, but not more than 8 Execution Threads.
5. Thread who will find needed file has to print Full Path to the file and has to notify all
the rest threads to stop searching.
========================================================================================
- Logic "to search file" has to be placed into static library.
- Application just uses this library to find files in a fast way.
- Static Library compilation has to be done separately from Application.
- Compiler: GCC or G++.
- Use Makefile for compilation/linking instructions.
========================================================================================
Things to Google: (Concurrency, Makefile, GCC, Static Library)
## Prerequisites
To use this application, you need to have the these prerequisites:
- g++
- make
## Installation and Usage
To install and use this application, you have to:
1. Clone this repository:
```
git clone without-eyes/FileSearcher
```
3. Use makefile to build application:
```
make
```
3. Run the application:
```
./FileSearcher
```
``: The name of the file you want to find.
4. The application begins the file search from the root directory and display the full path to the first appearence of it. In case the file is not found, an appropriate message will be displayed.