diff --git a/lib/dest/fileOperations/updateMetadata.js b/lib/dest/fileOperations/updateMetadata.js index f0921268..f2f1e123 100644 --- a/lib/dest/fileOperations/updateMetadata.js +++ b/lib/dest/fileOperations/updateMetadata.js @@ -39,7 +39,12 @@ function updateMetadata(fd, file, callback) { if (modeDiff) { return mode(); } - times(); + + if (timesDiff) { + return times(); + } + + callback(null, fd); function mode() { var mode = stat.mode ^ modeDiff;