Updated file search to enclose path with quotes

Bryan Roe committed Nov 16, 2020 at 15:43 UTC b658ebf2a264fdfc693af6824a3ff1ce9ef9c328
1 file changed +1 -1
agents/meshcore.js
+1 -1
@@ -2239,7 +2239,7 @@ function createMeshCore(agent) {
2239 }
2240 case 'findfile': {
2241 // Search for files
2242 - var r = require('file-search').find(cmd.path, cmd.filter);
2242 + var r = require('file-search').find('"' + cmd.path + '"', cmd.filter);
2243 if (!r.cancel) { r.cancel = function cancel() { this.child.kill(); }; }
2244 this._search = r;
2245 r.socket = this;