https://github.com/felipemdutra/folder-organizer
Simple folder organizer command line tool in Go.
https://github.com/felipemdutra/folder-organizer
command-line command-line-tool go go-dev go-developer go-development go-tool golang
Last synced: about 1 year ago
JSON representation
Simple folder organizer command line tool in Go.
- Host: GitHub
- URL: https://github.com/felipemdutra/folder-organizer
- Owner: felipemdutra
- License: mit
- Created: 2025-01-23T01:07:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-23T14:46:55.000Z (about 1 year ago)
- Last Synced: 2025-02-23T15:33:51.084Z (about 1 year ago)
- Topics: command-line, command-line-tool, go, go-dev, go-developer, go-development, go-tool, golang
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This was made only for me to learn Go.
# How does it work?
When you execute the project, you provide the path to the folder you want to organize as an argument.
The program will:
1. Traverse through all the files in the folder.
2. Create a subfolder for each file extension (e.g., '.txt', '.jpg').
3. Move files into their respective subfolders.
4. If a file has no extension, it will be placed in a 'MISC' folder.
### Example:
*Before organizing*:
```bash
MessyFolder/
├── file1.txt
├── file2.jpg
├── file3
├── notes.txt
├── image.png
```
*After organizing*:
```bash
MessyFolder/
├── TXT/
│ ├── file1.txt
│ ├── notes.txt
├── JPG/
│ ├── file2.jpg
├── PNG/
│ ├── image.png
├── MISC/
│ ├── file3
```
# How to use it?
First, clone the repository:
```bash
git clone github.com/felipemdutra/folder-organizer.git
cd folder-organizer
```
Build the project:
```bash
go build .
```
Then type the path to the folder you want to organize as an argument for the executable, for example:
```bash
./folder-organizer ~/ExampleFolder/MessyFolder
```
In this example, "MessyFolder" is going to be organized.