Added callback path to rename function

This commit is contained in:
Rob Moran 2016-06-19 13:05:17 +01:00 committed by GitHub
parent 7ae3908e3a
commit f80f838819

20
node_modules/vfs-local/localfs.js generated vendored
View File

@ -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 {