Skip to content

Simple folder organizer command line tool in Go. Work in progress.

License

Notifications You must be signed in to change notification settings

felipemdutra/folder-organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

MessyFolder/
├── file1.txt
├── file2.jpg
├── file3
├── notes.txt
├── image.png

After organizing:

MessyFolder/
├── TXT/
│   ├── file1.txt
│   ├── notes.txt
├── JPG/
│   ├── file2.jpg
├── PNG/
│   ├── image.png
├── MISC/
│   ├── file3

How to use it?

First, clone the repository:

git clone github.com/felipemdutra/folder-organizer.git
cd folder-organizer

Build the project:

go build .

Then type the path to the folder you want to organize as an argument for the executable, for example:

./folder-organizer ~/ExampleFolder/MessyFolder

In this example, "MessyFolder" is going to be organized.

Releases

No releases published

Packages

No packages published

Languages