Skip to content

CLI application to take files in one directory and separated them in other directories

License

Notifications You must be signed in to change notification settings

geromt/buckets-file-sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buckets - File Sorter

CLI application to take several files in one single directory and separate them in other directories within the original one given a number of files. If there are directories among the files, it ignores them.

This project is licensed under the terms of the MIT license.

Install

make

Usage

Help

buckets --help

It shows the available options

Separate by number of files

buckets -n <number>
buckets --number <number>

Separate the files in directories each one with at most <number> files.

You can also indicate a prefix to name the directories

buckets -n <number> -p <prefix>

Example

buckets -n 20

Separate the files in the current directory in directories each one at most have 20 files.

Separate by date

buckets -d {d,m,y}

Separate the files by day, month or year. The directory's name change with each option:

day yyyy-mm-dd
month yyyy-mm
year yyyy

You can also use the prefix option along with this option

Reverse operation

buckets -r
buckets --reverse

Takes the files in the directories in the working directory, and move them to the working directory.

Verbose

buckets -v
buckets --verbose

Displays more information

Uninstall

make clean

About

CLI application to take files in one directory and separated them in other directories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published