mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-10-17 08:24:32 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
b143f67acd |
@@ -183,7 +183,7 @@ internal class DownloadTask private constructor(val metadata: IndexFile.File, de
|
|||||||
// isDirectory follows symlinks, but createDirectories doesn't
|
// isDirectory follows symlinks, but createDirectories doesn't
|
||||||
try {
|
try {
|
||||||
Files.createDirectories(destPath.parent)
|
Files.createDirectories(destPath.parent)
|
||||||
} catch (e: FileAlreadyExistsException) {
|
} catch (e: java.nio.file.FileAlreadyExistsException) {
|
||||||
if (!Files.isDirectory(destPath.parent)) {
|
if (!Files.isDirectory(destPath.parent)) {
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user