From 88ad9d6d050ac1a38cf294eff878f495b1c14338 Mon Sep 17 00:00:00 2001 From: rprieto Date: Sat, 26 Apr 2014 18:23:19 +1000 Subject: [PATCH] Fix over-eager copy of original media --- src/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index c06a8e3..bf600d9 100644 --- a/src/index.js +++ b/src/index.js @@ -63,8 +63,12 @@ exports.build = function(opts) { } function copyMedia(callback) { - var dest = path.join(opts.output, 'media', 'original'); - copyFolder(opts.input, dest, callback); + regen({ + cwd: opts.input, + src: '**/*.{jpg,jpeg,png,mp4,mov}', + dest: media + '/original/$path/$name.$ext', + process: fs.copy + }, callback); } function photoLarge(callback) {