(candidatePath, expectedDigest)
| 488 | } |
| 489 | |
| 490 | function pathMatchesDigest(candidatePath, expectedDigest) { |
| 491 | try { |
| 492 | const status = fs.lstatSync(candidatePath); |
| 493 | return status.isFile() && !status.isSymbolicLink() && |
| 494 | fileSha256(candidatePath) === expectedDigest; |
| 495 | } catch (_) { |
| 496 | return false; |
| 497 | } |
| 498 | } |
| 499 | |
| 500 | function removeOwnedPublishedBinary(destDir, publishedDigests) { |
| 501 | for (const name of [WINDOWS_BINARY_NAME]) { |
no test coverage detected