mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Fixed server exception on backup restore, #4085
This commit is contained in:
parent
47fe130039
commit
fa136c489c
1 changed files with 1 additions and 1 deletions
|
@ -2042,7 +2042,7 @@ function CreateMeshCentralServer(config, args) {
|
|||
zipfile.openReadStream(entry, function (err, readStream) {
|
||||
if (err) throw err;
|
||||
readStream.on('end', function () { zipfile.readEntry(); });
|
||||
const directory = obj.path.dirname(entry.fileName);
|
||||
var directory = obj.path.dirname(entry.fileName);
|
||||
if (directory != '.') {
|
||||
directory = obj.getConfigFilePath(directory)
|
||||
if (obj.fs.existsSync(directory) == false) { obj.fs.mkdirSync(directory); }
|
||||
|
|
Loading…
Reference in a new issue