Commit 6e3ce764 authored by yann300's avatar yann300

fix remixd absolute path

parent 630a5bb5
......@@ -11,9 +11,7 @@ import * as pathModule from 'path'
*/
function absolutePath (path: string, sharedFolder:string): string {
path = normalizePath(path)
if (path.indexOf(sharedFolder) !== 0) {
path = pathModule.resolve(sharedFolder, path)
}
return path
}
......@@ -34,6 +32,7 @@ function normalizePath (path: string): string {
if (process.platform === 'win32') {
return path.replace(/\\/g, '/')
}
if (path === '/') path = './'
return path
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment