Compare commits

..

1 Commits

Author SHA1 Message Date
comp500
b143f67acd Fix symlink check by catching the correct exception 2021-06-22 13:54:06 +01:00

View File

@@ -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
}