Comparing version 6.1.1 to 6.1.2
@@ -468,2 +468,15 @@ 'use strict' | ||
[CHECKFS2] (entry, done) { | ||
// if we are not creating a directory, and the path is in the dirCache, | ||
// then that means we are about to delete the directory we created | ||
// previously, and it is no longer going to be a directory, and neither | ||
// is any of its children. | ||
if (entry.type !== 'Directory') { | ||
for (const path of this.dirCache.keys()) { | ||
if (path === entry.absolute || | ||
path.indexOf(entry.absolute + '/') === 0 || | ||
path.indexOf(entry.absolute + '\\') === 0) | ||
this.dirCache.delete(path) | ||
} | ||
} | ||
this[MKDIR](path.dirname(entry.absolute), this.dmode, er => { | ||
@@ -533,2 +546,11 @@ if (er) { | ||
[CHECKFS] (entry) { | ||
if (entry.type !== 'Directory') { | ||
for (const path of this.dirCache.keys()) { | ||
if (path === entry.absolute || | ||
path.indexOf(entry.absolute + '/') === 0 || | ||
path.indexOf(entry.absolute + '\\') === 0) | ||
this.dirCache.delete(path) | ||
} | ||
} | ||
const er = this[MKDIR](path.dirname(entry.absolute), this.dmode, neverCalled) | ||
@@ -535,0 +557,0 @@ if (er) |
@@ -5,3 +5,3 @@ { | ||
"description": "tar for node", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149750
3262