Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s-rb/gui-hashcode-generator
Hashcode generator for subfolders containing files. With simple GUI
https://github.com/s-rb/gui-hashcode-generator
Last synced: 24 days ago
JSON representation
Hashcode generator for subfolders containing files. With simple GUI
- Host: GitHub
- URL: https://github.com/s-rb/gui-hashcode-generator
- Owner: s-rb
- Created: 2020-06-03T00:02:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-21T11:27:32.000Z (12 months ago)
- Last Synced: 2024-11-05T21:16:55.647Z (2 months ago)
- Language: Java
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Program for calculating the hash code of subdirectories based on the files placed in them (1 level of nesting)
![Java](https://img.shields.io/badge/-Java-05122A?style=flat&logo=Java&logoColor=FFA518) ![JavaFX](https://img.shields.io/badge/-JavaFX-05122A?style=flat&logo=JavaFX) ![File](https://img.shields.io/badge/-File-05122A?style=flat&logo=File) ![Hashcode](https://img.shields.io/badge/-Hashcode-05122A?style=Hashcode) ![CSV](https://img.shields.io/badge/-CSV-05122A?style=flat&logo=csv&logoColor=fffffb) ![Concurrent](https://img.shields.io/badge/-Concurrent-05122A?style=flat&logo=Concurrent&logoColor=fffffb)
![Gui screenshot](appScreen.png)
### Technologies used
* Java 11 (Concurrent, Stream API, IO, NIO);
* JavaFX (GUI);### Operating algorithm:
* The root directory for which subdirectories are required to determine the hash code is entered as input.
* Then, after clicking the Generate button, the program finds all subdirectories containing files inside (at one level), files of the root directory are ignored. A queue of objects is created. The hash code is generated in multiple threads (depending on the number of processor cores) for each subfolder with files. The result is stored in the queue.
* After obtaining all the results, clicking the Export button writes to a file in csv format (the path and file name are entered in the input field).
* Clicking the Open button opens the file.
* p.s. The program is based on the task below, but the exact task parameters are unknown (algorithm, file structure, profiles):
![Task screenshot](HashTask.png)