@remix-project/remixd
Advanced tools
Comparing version 0.3.1-beta to 0.3.1
{ | ||
"name": "@remix-project/remixd", | ||
"version": "0.3.1-beta", | ||
"version": "0.3.1", | ||
"description": "remix server: allow accessing file system from remix.ethereum.org and start a dev environment (see help section)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
18
utils.js
@@ -44,3 +44,10 @@ "use strict"; | ||
const subElement = pathModule.join(dir, file); | ||
if (!fs.lstatSync(subElement).isSymbolicLink()) { | ||
let isSymbolicLink; | ||
try { | ||
isSymbolicLink = !fs.lstatSync(subElement).isSymbolicLink(); | ||
} | ||
catch (error) { | ||
isSymbolicLink = false; | ||
} | ||
if (isSymbolicLink) { | ||
if (fs.statSync(subElement).isDirectory()) { | ||
@@ -63,3 +70,10 @@ filelist = walkSync(subElement, filelist, sharedFolder); | ||
const subElement = pathModule.join(dir, file); | ||
if (!fs.lstatSync(subElement).isSymbolicLink()) { | ||
let isSymbolicLink; | ||
try { | ||
isSymbolicLink = !fs.lstatSync(subElement).isSymbolicLink(); | ||
} | ||
catch (error) { | ||
isSymbolicLink = false; | ||
} | ||
if (isSymbolicLink) { | ||
const relative = relativePath(subElement, sharedFolder); | ||
@@ -66,0 +80,0 @@ ret[relative] = { isDirectory: fs.statSync(subElement).isDirectory() }; |
Sorry, the diff of this file is not supported yet
50663
728