mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Added callback path to rename function
This commit is contained in:
parent
7ae3908e3a
commit
f80f838819
20
node_modules/vfs-local/localfs.js
generated
vendored
20
node_modules/vfs-local/localfs.js
generated
vendored
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user