Project

mediasort

0.0
No release in over 3 years
Low commit activity in last 3 years
Sort media files from a directory into another directory in the format of: <YEAR>/<MONTH>/<YEAR-MONTH-DAY>/<FILENAME.EXT>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 2.0.1
~> 3.12
 Project Readme

mediasort

Tidy up directories containing media of varying types (video, image)

More Details:

I wrote this script to move a directory full of photos just imported from SD card or camera and sort them into subdirectories based on their creation time. So if the photo, named DSC0001.JPG was taken on March 14th, 2015, the script would sort it into a directory like:

2015/03/2015-03-14/DSC0001.JPG <YEAR>/<MONTH>/<FULL-DATE>/<FILENAME>

Installation:

This script requires exiftool but has no other dependencies besides standard libraries.

Use brew to install exiftool:

brew install exiftool

Install the gem:

gem install mediasort

Usage:

Required Arguments

 mediasort \
  --input <directory containing files to be moved> \
  --output <directory to move files> \
  --mimetype <image|video> \

Optional Arguments

  --no-progress # don't display an indicator of progress
  --verbose # show the commands being executed

Contributing to mediasort

  • Send me a pull request.

Copyright

Copyright (c) 2015 Matt Petty (https://twitter.com/lodestone).
See LICENSE.txt for further details.