Skip to content

Sort files into folders by extensions of the files

Notifications You must be signed in to change notification settings

moskrc/filesorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExtSorter - A simple file sorter

What is it?

Sometimes you have a folder with a lot of files, and you want to sort them into folders. This is where ExtSorter comes in. It will sort your files into folders based on the file extension.

How to install

$ pip install extsorter

How to use

$ extsorter -h

usage: extsorter [-h] [-d DST] [src]

Sort files by extension

positional arguments:
  src                source dir

options:
  -h, --help         show this help message and exit
  -d DST, --dst DST  destination dir

Example

Sort files in current directory to a folder called sorted (name by default):

$ extsorter

Sort files in ~/Downloads to ~/Downloads/old:

$ extsorter ~/Downloads -d ~/Downloads/old

Development

Install

$ poetry install

Tests

$ poetry run make test

Linters

$ poetry run make format