diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index c53c1ad4..10b5059d 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -1051,16 +1051,18 @@ module.exports = function setup(fsOptions) { return callback(err); } - // Rename metadata - if (options.metadata !== false) { - var metaPath = WSMETAPATH; - rename(metaPath + from, { - to: metaPath + to, - metadata: false - }, function(err){ - callback(null, meta); - }); + if (options.metadata === false) { + return callback(null, meta); } + + // Rename metadata + var metaPath = WSMETAPATH; + rename(metaPath + from, { + to: metaPath + to, + metadata: false + }, function(err){ + callback(null, meta); + }); }); } else {