mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 01:49:07 +08:00
go back to normalize)
This commit is contained in:
parent
f77cbc9ef7
commit
7fa864a4f4
@ -104,7 +104,7 @@ export async function streamExtractExternal(
|
|||||||
new stream.Transform({
|
new stream.Transform({
|
||||||
objectMode: true,
|
objectMode: true,
|
||||||
transform: async (entry, _, callback) => {
|
transform: async (entry, _, callback) => {
|
||||||
const fullPath = path.resolve(directory, entry.path)
|
const fullPath = path.normalize(path.join(directory, entry.path))
|
||||||
if (!directory.endsWith(path.sep)) {
|
if (!directory.endsWith(path.sep)) {
|
||||||
directory += path.sep
|
directory += path.sep
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user