Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-201

No constructor to create a TarArchiveEntry link with leading slash

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 1.5
    • Component/s: Compressors
    • Labels:

      Description

      I want to create a link with a leading slash and put it in a tar archive (Debian package).

      The following constructors are provided

      public TarArchiveEntry(String name, boolean preserveLeadingSlashes)
      public TarArchiveEntry(String name, byte linkFlag)
      

      but there is no

      public TarArchiveEntry(String name, byte linkFlag, boolean preserveLeadingSlashes)
      

      so I have to overwrite the name using setName(String) which is not very clean.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tmortagne Thomas Mortagne
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: