From b658ebf2a264fdfc693af6824a3ff1ce9ef9c328 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Mon, 16 Nov 2020 15:43:28 -0800 Subject: [PATCH] Updated file search to enclose path with quotes --- agents/meshcore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/meshcore.js b/agents/meshcore.js index 2ca560ea..048abf9d 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -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;