Class TgzRelativePath

java.lang.Object
com.artipie.npm.TgzRelativePath

public final class TgzRelativePath extends Object
The relative path of a .tgz uploaded archive.
Since:
0.3
  • Constructor Details

    • TgzRelativePath

      public TgzRelativePath(String full)
      Ctor.
      Parameters:
      full - The full path.
  • Method Details

    • relative

      public String relative()
      Extract the relative path.
      Returns:
      The relative path.
    • relative

      public String relative(boolean replace)
      Extract the relative path.
      Parameters:
      replace - Is it necessary to replace `/-/` with `/version/` in the path. It could be required for some cases. See Deploying with cURL section.
      Returns:
      The relative path.