mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-03 09:55:57 -05:00
Fixed server exception on backup restore, #4085
This commit is contained in:
parent
47fe130039
commit
fa136c489c
@ -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…
x
Reference in New Issue
Block a user