Table of Contents
FileOrganizer is a little project to learn object-oriented programming in Java focus on files management.
Its usage mainly is duplicates deletion. There are two duplicates deletion modes: one folder only & one folder and its subdirectories.
Checksum is used for duplicates comparation to any duplication files, even with different extension. Checksum availables: MD5, SHA-1, and SHA-256.
FileOrganizer gives some features:
deleteDuplicates()
: Duplicate deletion in one exact directorydeleteDuplicatesOverFolders()
: Duplicate deletion in one directory and its subdirectories- Total deletion counts
- Checksum comparator for duplication (
MD5
,SHA-1
,SHA-256
) IOException
: Unaccesible directory error handlingNoSuchAlgorithmException
: Unknown algorithm error handling
FileOrganizer is built a standalone project using Java with Ant.
This is an example of how to use FileOrganizer project on Apache NetBeans 19.
- Apache NetBeans 19 with JDK 17 installed
You can find the latest version of Apache NetBeans here.
- Download FileOrganizer source code
- Extract FileOrganizer zip to your chosen folder
- Open Apache NetBeans 19
- Open File > Open Project... (CTRL+Shift+O)
- Find your folder at step 2
- Click Open Project
- Project ready
You can run FileOrganizer for duplicates deletion by:
- Change parameter
directoryPath
to your own directory for duplicates deletion - Choose your duplicates deletion mode:
deleteDuplicates()
or [default]deleteDuplicatesOverFolders()
- Make sure to comment or delete method call for unused mode
- Optional: change checksum algorithm for duplicate comparator
You may change those parameters to observe how FileOrganizer works.
Furthermore, you can create your own modification to answer your curiousity.
Hopefully, find the best practices of input-output file organizer.
Distributed under the MIT License. See LICENSE.txt
for more information.
Satria Manggala Jati - @satriamjati - [email protected]
Project Link: https://github.com/satriamjati/FileOrganizer
- Matrikulasi Pemrograman Berorientasi Obyek course group