0.0.3 • Published 4 years ago
photo-video-sorter v0.0.3
the photo-video-sorter is a small cli tool to sort photos or videos by exif date or ctime as fallback into a folder structure.
e.g. a file with date 2021-12-24 will be moved into this folder structure by default strategy monthYear
{destinationFolder}/2021/12/Why moveing files?
to keep the ctime and mtime original
Dependencies
pvs using exiftool to extract exif date from files
so we need the exiftool package for your system
on macOS
sudo brew update
sudo brew install exiftoolhttps://exiftool.org/install.html
Installation
Global
npm install -g photo-video-sorterLocal
npm install photo-video-sorterUsage: pvs options
Options:
-s, --strategy <monthYear|dayMonthYear|year> the strategy for sorting files into folder (default: "monthYear")
-sf, --sourceFolder <path> the sourceFolder to scan for files
-df, --destinationFolder <path> the destination folder for the sorted files
-t, --fileType <image | video> the file type looking for (default: "image")
-h, --help display help for commandExamples global
pvs -s dayMonthYear -sf /Users/..../Photos -df /Volumes/Photos -t image
pvs -s dayMonthYear -sf /Users/..../Videos -df /Volumes/Videos -t videoExamples local
npx pvs -s dayMonthYear -sf /Users/..../Photos -df /Volumes/Photos -t image
npx pvs -s dayMonthYear -sf /Users/..../Videos -df /Volumes/Videos -t videoDevelopment
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run build