mirror of
				https://github.com/GayPizzaSpecifications/foundation.git
				synced 2025-11-04 03:39:37 +00:00 
			
		
		
		
	Core: Backup should use a 16KB buffer.
This commit is contained in:
		@ -138,7 +138,7 @@ class BackupCommand(
 | 
				
			|||||||
      .filter { path: Path -> Files.isRegularFile(path) }
 | 
					      .filter { path: Path -> Files.isRegularFile(path) }
 | 
				
			||||||
      .filter { path -> !matchers.any { it.matches(Paths.get(path.normalize().toString())) } }
 | 
					      .filter { path -> !matchers.any { it.matches(Paths.get(path.normalize().toString())) } }
 | 
				
			||||||
      .toList()
 | 
					      .toList()
 | 
				
			||||||
    val buffer = ByteArray(1024)
 | 
					    val buffer = ByteArray(16 * 1024)
 | 
				
			||||||
    val backupsPath = backupsPath.toRealPath()
 | 
					    val backupsPath = backupsPath.toRealPath()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (path in paths) {
 | 
					    for (path in paths) {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user