Skip to content

Commit

Permalink
Debug: List files under extraction destination
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed Dec 3, 2024
1 parent 244b85b commit 2fb0b60
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/tools-download.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/tools-download.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/tools-download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ export async function downloadAndExtract(
await cleanUpGlob(archivedBundlePath, "CodeQL bundle archive", logger);
}

// List the immediate files under the destination directory to check if the extraction was successful.
logger.info("Files extracted:");
for (const file of fs.readdirSync(dest)) {
logger.info(` ${file}`);
}

return {
compressionMethod,
toolsUrl: sanitizeUrlForStatusReport(codeqlURL),
Expand Down

0 comments on commit 2fb0b60

Please sign in to comment.