Comparing version 4.4.14 to 4.4.15
@@ -417,2 +417,16 @@ 'use strict' | ||
this[PEND]() | ||
// 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 => { | ||
@@ -479,2 +493,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) | ||
@@ -481,0 +504,0 @@ if (er) |
@@ -5,3 +5,3 @@ { | ||
"description": "tar for node", | ||
"version": "4.4.14", | ||
"version": "4.4.15", | ||
"publishConfig": { | ||
@@ -8,0 +8,0 @@ "tag": "v4-legacy" |
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
135048
3024