Merge pull request #21 from Microsoft/fix-cache-initialization
Fix cache initialization
This commit is contained in:
Коммит
7fd728e00c
|
@ -60,7 +60,10 @@ function ensurePathExists(resolvedPath) {
|
|||
function joinAndCreatePath(pathList) {
|
||||
var outPath;
|
||||
pathList.forEach(function (relPath) {
|
||||
if (relPath === '') relPath = path.sep;
|
||||
// Make sure to reappend the root if we need to
|
||||
if (relPath === '') relPath = path.sep; // *NIX root
|
||||
if (relPath.indexOf(':') >= 0) relPath += path.sep; // Windows root
|
||||
|
||||
if (!outPath) {
|
||||
outPath = relPath;
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче