Commit 023ad0e
committed
fix: header entries representing root dir error
Some tar utilities, most notably Python's built-in TarFile.add,
include a header entry to represent the root of the directory
being tarred and also append a slash to header entries representing
directories. This means the root directory gets the unfortunate name
of "/" which `root.MkdirAll("/")` interprets as an absolute path
and errors.
Since the root directory already exists at this point, we can
just skip the call to create it altogether.1 parent b6d3e8f commit 023ad0e
2 files changed
+87
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
| 433 | + | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
652 | 733 | | |
653 | 734 | | |
654 | 735 | | |
| |||
1455 | 1536 | | |
1456 | 1537 | | |
1457 | 1538 | | |
1458 | | - | |
| 1539 | + | |
1459 | 1540 | | |
1460 | 1541 | | |
1461 | 1542 | | |
| |||
1516 | 1597 | | |
1517 | 1598 | | |
1518 | 1599 | | |
1519 | | - | |
| 1600 | + | |
1520 | 1601 | | |
1521 | 1602 | | |
1522 | 1603 | | |
| |||
1557 | 1638 | | |
1558 | 1639 | | |
1559 | 1640 | | |
1560 | | - | |
| 1641 | + | |
1561 | 1642 | | |
1562 | | - | |
| 1643 | + | |
0 commit comments