Merge pull request #19314 from Microsoft/fix-tsc-instrumented

Fix four tsc-instrumented bugs
This commit is contained in:
Nathan Shively-Sanders
2017-10-18 16:41:40 -07:00
committed by GitHub
2 changed files with 16 additions and 7 deletions

View File

@@ -573,7 +573,7 @@ namespace ts {
function recursiveCreateDirectory(directoryPath: string, sys: System) {
const basePath = getDirectoryPath(directoryPath);
const shouldCreateParent = directoryPath !== basePath && !sys.directoryExists(basePath);
const shouldCreateParent = basePath !== "" && directoryPath !== basePath && !sys.directoryExists(basePath);
if (shouldCreateParent) {
recursiveCreateDirectory(basePath, sys);
}