override def shape: FlowShape[ObjectMatrixEntry, ArchiveEntryDownloadSynopsis] = FlowShape.of()

in app/streamcomponents/MakeDownloadSynopsis.scala [12:36]


  override def shape: FlowShape[ObjectMatrixEntry, ArchiveEntryDownloadSynopsis] = FlowShape.of(in,out)

  /**
    * recursively iterate the provided strip prefixes and remove the first one that matches
    * @param filePath filepath determined from the appliance
    * @return
    */
  def strippedPrefix(filePath:String) = maybeStripPrefixes match {
    case None=>filePath
    case Some(prefixesToRemove)=>
      def stripNextPrefix(remainingList:Seq[String], onBaseString:String):String = {
        if(remainingList.isEmpty){
          onBaseString
        } else {
          val updatedString = if(onBaseString.startsWith(remainingList.head)){
            return onBaseString.substring(remainingList.head.length)
          } else {
            onBaseString
          }
          stripNextPrefix(remainingList.tail, onBaseString)
        }
      }

      stripNextPrefix(prefixesToRemove, filePath)
  }