Skip to content

Commit

Permalink
fix: wrong construction of nextstrain open download URL
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoran-chen committed May 14, 2024
1 parent 6bed631 commit 1f2ff5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private fun downloadFromNextstrain(file: OpenFiles, outputDirectory: Path): File
OpenFiles.TRANSLATION_ORF9b -> fastaTemplate.copy(name = "translation_ORF9b")
OpenFiles.TRANSLATION_S -> fastaTemplate.copy(name = "translation_S")
}
val url = URL("https://data.nextstrain.org/files/ncov/open/${outputFile.name}")
val url = URL("https://data.nextstrain.org/files/ncov/open/${outputFile.filename}")
url.openStream().use { input ->
Files.copy(input, outputFile.path, StandardCopyOption.REPLACE_EXISTING)
}
Expand Down

0 comments on commit 1f2ff5b

Please sign in to comment.