Skip to content

Instantly share code, notes, and snippets.

@Mouerr
Mouerr / move-photos.js
Created February 13, 2021 12:02 — forked from kentcdodds/move-photos.js
Just a script I wrote to get my downloaded Google Photos into the right place.
const path = require('path')
const fs = require('fs')
const execSync = require('child_process').execSync
if (!process.argv[2] || !process.argv[3]) {
throw new Error('you did not pass the source and destination paths')
}
const searchPath = path.join(process.cwd(), process.argv[2])
const destination = path.join(process.cwd(), process.argv[3])