From c5fa74a55c04f4a51f781c5bd559b2dffad3ce0c Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Thu, 22 Jul 2021 18:07:00 +0530 Subject: [PATCH] added / in path --- libs/remixd/src/services/remixdClient.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/remixd/src/services/remixdClient.ts b/libs/remixd/src/services/remixdClient.ts index 7d24c2aae1..8645caf4ac 100644 --- a/libs/remixd/src/services/remixdClient.ts +++ b/libs/remixd/src/services/remixdClient.ts @@ -188,7 +188,7 @@ export class RemixdClient extends PluginClient { const list = utils.resolveDirectory(path, this.currentSharedFolder) Object.keys(list).forEach(itemPath => { if (list[itemPath].isDirectory) { - resolveList(`${this.currentSharedFolder}${itemPath}`) + resolveList(`${this.currentSharedFolder}/${itemPath}`) } ls.push(itemPath) }) @@ -227,7 +227,6 @@ export class RemixdClient extends PluginClient { isDirectory (args: SharedFolderArgs): boolean { try { const path = utils.absolutePath(args.path, this.currentSharedFolder) - return fs.statSync(path).isDirectory() } catch (error) { throw new Error(error) @@ -237,7 +236,6 @@ export class RemixdClient extends PluginClient { isFile (args: SharedFolderArgs): boolean { try { const path = utils.absolutePath(args.path, this.currentSharedFolder) - return fs.statSync(path).isFile() } catch (error) { throw new Error(error)