Merge pull request #3903 from ethereum/remixdwindows

fix paths remixd windows
pull/5370/head
yann300 1 year ago committed by GitHub
commit 2d52dcebb7
  1. 6
      libs/remixd/src/utils.ts

@ -41,7 +41,11 @@ function isSubDirectory (parent: string, child: string) {
function relativePath (path: string, sharedFolder: string): string { function relativePath (path: string, sharedFolder: string): string {
const relative: string = pathModule.relative(sharedFolder, path) const relative: string = pathModule.relative(sharedFolder, path)
return normalizePath(relative) return convertPathToPosix(normalizePath(relative))
}
const convertPathToPosix = (pathName: string): string => {
return pathName.split(pathModule.sep).join(pathModule.posix.sep)
} }
function normalizePath (path) { function normalizePath (path) {

Loading…
Cancel
Save