Now, the content of each file is no longer fully read into memory, but directly copied into a zip file through io. Copy(). Before the loop, we created the target file and reused the file handle in the loop, thereby reducing disk write operations. Finally, during export, we use the defer statement to release resources and ensure that these resources are properly closed before the program exitspull/224/head
							parent
							
								
									3eaa2dd2bf
								
							
						
					
					
						commit
						71340f4650
					
				
					Loading…
					
					
				
		Reference in new issue