Skip to content

Commit

Permalink
BLGMIGRATION-408: Fix - Create attachment directory
Browse files Browse the repository at this point in the history
  • Loading branch information
shomatan committed Nov 21, 2017
1 parent ba760dd commit 6bea2ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.nulabinc.backlog.j2b.exporter
import com.nulabinc.backlog.j2b.jira.service.IssueService
import com.nulabinc.backlog.migration.common.conf.{BacklogConstantValue, BacklogPaths}
import com.nulabinc.backlog.migration.common.domain._
import com.nulabinc.backlog.migration.common.utils.Logging
import com.nulabinc.backlog.migration.common.utils.{IOUtil, Logging}
import com.nulabinc.jira.client._
import com.nulabinc.jira.client.domain.Attachment
import com.osinka.i18n.Messages
Expand Down Expand Up @@ -84,6 +84,7 @@ private [exporter] class ChangeLogReducer(issueDirPath: Path,
// download
val dir = backlogPaths.issueAttachmentDirectoryPath(issueDirPath)
val path = backlogPaths.issueAttachmentPath(dir, attachmentInfo.name)
IOUtil.createDirectory(dir)
issueService.downloadAttachments(attachmentInfoId.toLong, path, attachmentInfo.name) match {
case Success =>
(Some(changeLog), "")
Expand Down

0 comments on commit 6bea2ae

Please sign in to comment.