Skip to content

satvikgosai/sortify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sortify

Sortify is a command-line utility written in Go that helps you organize files in a directory by automatically sorting them into appropriate subdirectories based on their file extensions.

Features

  • Automatically categorizes files into meaningful directories based on file extensions
  • Supports a wide range of file types including:
    • Images (jpg, png, gif, etc.)
    • Documents (pdf, doc, txt, etc.)
    • Audio Files (mp3, wav, etc.)
    • Video Files (mp4, mkv, etc.)
    • Archives (zip, rar, etc.)
    • And many more categories
  • Simple command-line interface
  • Preserves original filenames
  • Creates category directories automatically

Installation

  1. Make sure you have Go installed on your system
  2. Clone this repository:
    git clone https://github.com/yourusername/sortify.git
    cd sortify
  3. Build the project:
    go build

Usage

Run the program with the -d or --dir flag to specify the directory you want to sort:

./sortify -d /path/to/directory

or

./sortify --dir /path/to/directory

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.

About

CLI to organise files in a directory into subdirectories based on file type

Topics

Resources

Stars

Watchers

Forks

Languages