mirror of
				https://github.com/packwiz/packwiz-installer.git
				synced 2025-11-04 12:34:31 +01:00 
			
		
		
		
	Fix support for symlinked directories
This commit is contained in:
		@@ -176,7 +176,10 @@ internal class DownloadTask private constructor(val metadata: IndexFile.File, de
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (fileSource.hashIsEqual(hash)) {
 | 
			
		||||
				Files.createDirectories(destPath.parent)
 | 
			
		||||
				// isDirectory follows symlinks, but createDirectories doesn't
 | 
			
		||||
				if (Files.isDirectory(destPath.parent)) {
 | 
			
		||||
					Files.createDirectories(destPath.parent)
 | 
			
		||||
				}
 | 
			
		||||
				Files.copy(data.inputStream(), destPath, StandardCopyOption.REPLACE_EXISTING)
 | 
			
		||||
				data.clear()
 | 
			
		||||
			} else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user