Skip to content

bogdanbujdea/FileSort

Repository files navigation

FileSort

FileSort is a tool for classifying files based on date(other classifiers coming soon). I made this tool for sorting the photos from my Dropbox "Camera Uploads" folder. Usually that folder gets pretty big and I like to have my photos organized in the following structure

|Root folder
├── year
│   └── month
│       └── day
│         └── pic1.jpg
│         └── pic2.jpg

Here's how my Dropbox looks:

Demo

Usage

Install the tool

dotnet tool install --global file-sort

Options:

-r|--recursive                              Recursive search
-d|--working-directory                      The directory to search
-u|--use-multiple-classifiers               Use multiple classifiers
-i|--interval                               year/month/day/hour
-m|--move-to-root                           Move all files to root
-?|-h|--help                                Show help information

Examples:

Sort all files by month:

file-sort -i=month

Sort all files from every subfolder by day:

file-sort -i=day -r

Sort all files from every subfolder by day, month, year:

file-sort -i=day -u -i

Move every file from every subfolder to the current folder:

file-sort -m

Build Status

About

Tool for classifying files by date.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •