mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-09-11 08:55:32 +03:00
Updated file search to enclose path with quotes
This commit is contained in:
parent
0851654ec8
commit
b658ebf2a2
@ -2239,7 +2239,7 @@ function createMeshCore(agent) {
|
||||
}
|
||||
case 'findfile': {
|
||||
// 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(); }; }
|
||||
this._search = r;
|
||||
r.socket = this;
|
||||
|
Loading…
Reference in New Issue
Block a user