Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ext-sort

A utility that moves files to a specified directory based on their extension
v.0.1
2020 by radicalarchivist

Setup

$ pip install -r requirements.txt

Usage

ext-sort [-ckr] -x EXTENSION -t TARGET-DIR SCAN-DIR... 
ext-sort --help
ext-sort --version

Options:
  SCAN-DIR                              Directory to be scanned
  -t --target TARGET-DIR                Directory to copy files into
  -x --extension EXTENSION              extension(s) of the files to move
  -r --recursive                        Scan recursively
  -k --keep-structure                   Retains directory structure when moving
  -c --cron                             Used when ext-sort is run on a schedule, assumes yes to prompts
  -h --help                             Show this screen
  --version                             Show version info

Examples

Move video files to /home/user/Videos

# *nix/Mac
$ ext-sort -x mp4,mov,avi,mkv -t /home/user/Videos /some/source/directory 

# Windows
C:\ext-sort path> C:\Path\to\Python.exe ext-sort -x mp4,mov,avi,mkv -t C:\home\user\Videos C:\some\source\directory C:\home\user\Videos

Move gifs recursively to /home/user/Pictures/gifs

# *nix/Mac
$ ext-sort -r -x gif -t /home/user/Pictures/gifs /some/source/directory 

# Windows
C:\ext-sort path> C:\Path\to\Python.exe ext-sort -k -x gif -t C:\home\user\Pictures\gifs C:\some\source\directory 

Move video files recursively to /home/user/Videos and keep the file structure

# *nix/Mac
$ ext-sort -kr -x mp4,mov,avi,mkv -t /home/user/Videos /some/source/directory 

# Windows
C:\ext-sort path> C:\Path\to\Python.exe ext-sort -kr -x mp4,mov,avi,mkv -t C:\home\user\Videos C:\some\source\directory 

Support RadicalArchivist

ko-fi

About

A utility that moves files to a specified directory based on their extension

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages