Upload files to "/"
This commit is contained in:
		
						commit
						a6a74e94fd
					
				
							
								
								
									
										30
									
								
								Concat.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								Concat.go
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
package main
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
   "os"
 | 
			
		||||
   "path/filepath"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
   file, err := os.Create("out.mp4")
 | 
			
		||||
   if err != nil {
 | 
			
		||||
      panic(err)
 | 
			
		||||
   }
 | 
			
		||||
   defer file.Close()
 | 
			
		||||
   data, err := os.ReadFile("_init_dec.mp4")
 | 
			
		||||
   if err != nil {
 | 
			
		||||
      panic(err)
 | 
			
		||||
   }
 | 
			
		||||
   file.Write(data)
 | 
			
		||||
   names, err := filepath.Glob("*.m4s")
 | 
			
		||||
   if err != nil {
 | 
			
		||||
      panic(err)
 | 
			
		||||
   }
 | 
			
		||||
   for _, name := range names {
 | 
			
		||||
      data, err := os.ReadFile(name)
 | 
			
		||||
      if err != nil {
 | 
			
		||||
         panic(err)
 | 
			
		||||
      }
 | 
			
		||||
      file.Write(data)
 | 
			
		||||
   }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user