mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-14 20:11:52 +00:00
Updated file search to enclose path with quotes
This commit is contained in:
parent
0851654ec8
commit
b658ebf2a2
1 changed files with 1 additions and 1 deletions
|
@ -2239,7 +2239,7 @@ function createMeshCore(agent) {
|
||||||
}
|
}
|
||||||
case 'findfile': {
|
case 'findfile': {
|
||||||
// Search for files
|
// Search for files
|
||||||
var r = require('file-search').find(cmd.path, cmd.filter);
|
var r = require('file-search').find('"' + cmd.path + '"', cmd.filter);
|
||||||
if (!r.cancel) { r.cancel = function cancel() { this.child.kill(); }; }
|
if (!r.cancel) { r.cancel = function cancel() { this.child.kill(); }; }
|
||||||
this._search = r;
|
this._search = r;
|
||||||
r.socket = this;
|
r.socket = this;
|
||||||
|
|
Loading…
Reference in a new issue