code: @Override
      public T addAsDirectory(final ArchivePath path) throws IllegalArgumentException {
          // Precondition check
          Validate.notNull(path, "path must be specified");
  
          // Adjust the path to remove any trailing slash
          ArchivePath adjustedPath = new BasicPath(PathUtil.optionallyRemoveFollowingSlash(path.get()));
          return addAsset(adjustedPath, null);
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.api.Archive#addAsDirectory(org.jboss.shrinkwrap.api.ArchivePath)