mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-20 05:26:30 +02:00
Whoops
This commit is contained in:
parent
a368268038
commit
60887a4312
@ -177,7 +177,7 @@ internal class DownloadTask private constructor(val metadata: IndexFile.File, de
|
|||||||
|
|
||||||
if (fileSource.hashIsEqual(hash)) {
|
if (fileSource.hashIsEqual(hash)) {
|
||||||
// isDirectory follows symlinks, but createDirectories doesn't
|
// isDirectory follows symlinks, but createDirectories doesn't
|
||||||
if (Files.isDirectory(destPath.parent)) {
|
if (!Files.isDirectory(destPath.parent)) {
|
||||||
Files.createDirectories(destPath.parent)
|
Files.createDirectories(destPath.parent)
|
||||||
}
|
}
|
||||||
Files.copy(data.inputStream(), destPath, StandardCopyOption.REPLACE_EXISTING)
|
Files.copy(data.inputStream(), destPath, StandardCopyOption.REPLACE_EXISTING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user