Updated file search to enclose path with quotes

This commit is contained in:
Bryan Roe 2020-11-16 15:43:28 -08:00
parent 0851654ec8
commit b658ebf2a2

View File

@ -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;