From b143f67acdb9f4fe0e98fb7d116600a92787294f Mon Sep 17 00:00:00 2001 From: comp500 Date: Tue, 22 Jun 2021 13:53:47 +0100 Subject: [PATCH] Fix symlink check by catching the correct exception --- src/main/kotlin/link/infra/packwiz/installer/DownloadTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/link/infra/packwiz/installer/DownloadTask.kt b/src/main/kotlin/link/infra/packwiz/installer/DownloadTask.kt index 8e04245..120a8c7 100644 --- a/src/main/kotlin/link/infra/packwiz/installer/DownloadTask.kt +++ b/src/main/kotlin/link/infra/packwiz/installer/DownloadTask.kt @@ -183,7 +183,7 @@ internal class DownloadTask private constructor(val metadata: IndexFile.File, de // isDirectory follows symlinks, but createDirectories doesn't try { Files.createDirectories(destPath.parent) - } catch (e: FileAlreadyExistsException) { + } catch (e: java.nio.file.FileAlreadyExistsException) { if (!Files.isDirectory(destPath.parent)) { throw e }