mirror of
				https://github.com/packwiz/packwiz-installer.git
				synced 2025-11-04 12:34:31 +01:00 
			
		
		
		
	Fix symlink check by catching the correct exception
This commit is contained in:
		@@ -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
 | 
			
		||||
					}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user