Commit ccd231e
committed
NSIS: When extracting files, get the path's basename when recording the name
In the scan metadata JSON, the result will be like this:
```json
{
"FileName":"headers",
"FilePath":"/home/micah/tmp/20250702_173504-clam-nsis.exe.991ca413f9/clamav-b8d49de1082953f591c02163a128b90b.tmp/nulsft-tmp.1416a98706/headers",
"FileSize":4357,
"ObjectID":2
},
```
... instead of this:
```json
{
"FileName":"/home/micah/tmp/20250702_172320-clam-nsis.exe.1bfb389b2c/clamav-41fa5f1bc556577438b143bc2915f57c.tmp/nulsft-tmp.a851a869ee/headers",
"FilePath":"/home/micah/tmp/20250702_172320-clam-nsis.exe.1bfb389b2c/clamav-41fa5f1bc556577438b143bc2915f57c.tmp/nulsft-tmp.a851a869ee/headers",
"FileSize":4357,
"ObjectID":2
},
```json1 parent dccb188 commit ccd231e
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
| 542 | + | |
542 | 543 | | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
547 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
548 | 557 | | |
549 | | - | |
| 558 | + | |
550 | 559 | | |
551 | | - | |
| 560 | + | |
552 | 561 | | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
553 | 565 | | |
| 566 | + | |
554 | 567 | | |
555 | 568 | | |
556 | 569 | | |
| |||
0 commit comments