From 5ffb3ebde3204e3e0c5fcb17ec24c88a19edcc02 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 20 Oct 2013 01:18:29 +0400 Subject: [PATCH] added reporting on export... Signed-off-by: Alex A. Naanou --- ui/files.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ui/files.js b/ui/files.js index c24179f6..b2440219 100755 --- a/ui/files.js +++ b/ui/files.js @@ -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)