This is my version of a file organiser in Golang. This program was designed to help users automatically organize their Downloads folder into specific subfolders based on their file types. This idea was initiated to help keep your Downloads folder clean and organised, making it easier to find files and reduce the level of clutter.
-
Ensure go is installed: Make sure that you have
goinstalled on your machine so as to enable you run the program. You can download and install it from the official Go website. -
Clone the repo: Clone the
File Organiserrepo from the github URL https://github.com/Manuelshub/File_Organiser/tree/main. -
Go into the repo locally: Open up the repo and run the program with the go run main.go command.
-
Run the program:
go run main.gogo version go1.21.x or later
This File Organiser program creates the following subfolders within your ~Downloads folder:
Images: This folder will contain all image files with the extensions .jpg, .png and .jpeg
Videos: This folder will contain all video files with the extensions .mov, .mp4, and .avi.
Music: This folder will contain all video files with the extensions .mp3, .wav, .flac
Documents: This folder will contain all music document files with the extensions .pdf, .doc, .docx, .txt, .pptx, .xlsx
This program will only move files that are not already in their respective destination sub-folder. If a file with the same name already exists in one of the folders, the program will skip moving that particular file.
Contributions to this project are welcome. If any have any ideas, bug fixes, or improvements, feel free to submit a pull request.
For any enquiries or questions, you can reach out to me via email at kcemmy03@gmail.com