Skip to content

Sort and tidy directories containing media (images, video)

License

Notifications You must be signed in to change notification settings

lodestone/mediasort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Sort and tidy directories containing media (images, video)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages