Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Python File sorter


Simple python file sorter

Odran HUSSON https://odran.cc

Simple tool to recursivly and automaticly sort files in asked repertory. Usefull for download folders. The sorted folders then can be added to a webserver to download the files or to a plex server.

Usage

Change the following lines to your wanted outputs folders :

"Configuration"
movies_folder="/var/www/html/file-manager/Films/"
series_folder="/var/www/html/file-manager/Series/"
music_folder="/var/www/html/file-manager/Musique/"

To sort a folder execute :

python sort_dir.py /home/user/folder_to_sort

Sample output

python sort_dir.py movie/

Results for folder "/var/www/html/file-sorter/Serie" :
	0  audio file(s)
	5  video file(s)
	0  sub folder(s)
Multiple movies or series :
	Moving "Serie.S03E05.avi" to Series folder
	Moving "Serie.S03E01.avi" to Series folder
	Moving "Serie.S03E03.avi" to Series folder
	Moving "Serie.S03E02.avi" to Series folder
	Moving "Serie.S03E04.avi" to Series folder
Results for folder "/var/www/html/file-sorter/FILM" :
	0  audio file(s)
	0  video file(s)
	0  sub folder(s)
No match !

Informations

This script has been tested on debian and mac os, not tested on windows

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published