Skip to content

Commit c9c9f06

Browse files
committed
fix(amazonq): normalize paths for zip
1 parent d0194dd commit c9c9f06

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/amazonqFeatureDev/util

1 file changed

+1
-1
lines changed

packages/core/src/amazonqFeatureDev/util/files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export async function prepareRepoData(
7676
totalBytes += fileSize
7777
// Paths in zip should be POSIX compliant regardless of OS
7878
// Reference: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
79-
const posixPath = file.zipFilePath.replace(/\\/g, '/')
79+
const posixPath = file.zipFilePath.split(path.sep).join(path.posix.sep)
8080

8181
try {
8282
zip.writeFile(file.fileUri.fsPath, posixPath)

0 commit comments

Comments
 (0)