Skip to content

bogdanbujdea/FileSort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1b5f3bc · May 31, 2024

History

33 Commits
Mar 11, 2019
May 31, 2024
May 31, 2024
Nov 29, 2018
Nov 29, 2018
Mar 11, 2019
Mar 11, 2019
May 14, 2019
Jan 13, 2019
Mar 3, 2019
Mar 3, 2019

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