version (3.68 KB) by Tom Schoehuijs
Fili will move and rename downloaded TV Shows and Movies to an ordered filing system.


Updated 5 Feb 2016

View License

Used to rename and move files, without GUI. This program will scan your videos folder and move the files to a nice sorted filing system. It scans the TV episodes against an index.txt file which should be placed along side it in the root folder.
Input arguments: inputfolder, outputfolder, mp4 (boolean), avi (boolean), mkv (boolean), txt (boolean)
Output arguments: [none]
If no input arguments are provided, it will resort to the following defaults:
inputfolder string B:\Users\TSchoehuijs\Videos\
outputfolder string B:\Users\TSchoehuijs\Videos\
mp4 boolean 1
avi boolean 1
mkv boolean 1
txt boolean 0
(you may want to change these on your own computer)
The boolean files for mp4, avi, mkv, txt represent if it scans for that filetype. It then checks the filename against that in index.txt, detects season and episode number and moves it. If the name is not known, it assumes the file is a movie.
For example:
B:\Users\TSchoehuijs\Videos\The.Mentalist.S04\The.Mentalist.S04E08.HDTV.XviD-ASAP.[VTV].Pink.Tops.avi -----> B:\Users\TSchoehuijs\Videos\TV Shows\The Mentalist\Season 4\The Mentalist S04E08.avi

Finally, it deletes any empty folders.
Any moves and deletes are saved in the log.txt file it makes.
Last updated Jan 23 2016

Cite As

Tom Schoehuijs (2022). Fili (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!