use existing function

This commit is contained in:
bethanyj28 committed 2024-02-23 08:28:37 -05:00
1 parent 96b74c9f2f
commit 7ce56d13f1
1 file changed
+4 -1
+4 -1
View File
@@ -97,9 +97,12 @@ export async function streamExtractExternal(
const fullPath = path.normalize(path.join(directory, entry.path))
core.debug(`Extracting artifact entry: ${fullPath}`)
if (entry.type === 'Directory') {
promises.push(fs.mkdir(fullPath, {recursive: true}).then(() => {}))
promises.push(resolveOrCreateDirectory(fullPath).then(() => {}))
entry.autodrain()
} else {
promises.push(
resolveOrCreateDirectory(path.dirname(fullPath)).then(() => {})
)
const writeStream = createWriteStream(fullPath)
promises.push(
new Promise((resolve, reject) => {