added reporting on export...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-10-20 01:18:29 +04:00
parent e765bd34bf
commit 5ffb3ebde3

View File

@ -672,7 +672,16 @@ function exportTo(path, im_name, dir_name, size){
dest = path +'/'+ dest
// copy...
copyFile(src, dest)
// NOTE: the sad smily face here is here for JS compatibility ;)
;(function(src, dest){
copyFile(src, dest)
.done(function(){
console.log(src, 'done.')
})
.fail(function(err){
console.warn(src, 'err:', err)
})
})(src, dest)
}
path = normalizePath(path +'/'+ dir_name)