Compare commits

..

1 Commits

Author SHA1 Message Date
comp500
60887a4312 Whoops 2020-12-07 17:42:52 +00:00

View File

@@ -177,7 +177,7 @@ internal class DownloadTask private constructor(val metadata: IndexFile.File, de
if (fileSource.hashIsEqual(hash)) {
// isDirectory follows symlinks, but createDirectories doesn't
if (Files.isDirectory(destPath.parent)) {
if (!Files.isDirectory(destPath.parent)) {
Files.createDirectories(destPath.parent)
}
Files.copy(data.inputStream(), destPath, StandardCopyOption.REPLACE_EXISTING)