(candidatePath, expectedDigest)
| 350 | } |
| 351 | |
| 352 | function pathMatchesDigest(candidatePath, expectedDigest) { |
| 353 | try { |
| 354 | const status = fs.lstatSync(candidatePath); |
| 355 | return status.isFile() && !status.isSymbolicLink() && |
| 356 | fileSha256(candidatePath) === expectedDigest; |
| 357 | } catch (_) { |
| 358 | return false; |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | function removeOwnedPublishedBinary(destDir, publishedDigests) { |
| 363 | for (const name of [WINDOWS_BINARY_NAME]) { |
no test coverage detected