moskrc / filesorter

Sort files into folders by extensions of the files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Sort files into folders by extensions of the files


Languages

Language:Python 92.4%Language:Makefile 7.6%