mirror of
				https://github.com/9001/copyparty.git
				synced 2025-10-31 12:43:13 -06:00 
			
		
		
		
	license downloader (for generating COPYING.txt) broke after opensource.org changed their html, so just vendor all of it
		
			
				
	
	
		
			13 lines
		
	
	
		
			308 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			308 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
| #!/usr/bin/env python3
 | |
| 
 | |
| import os, codecs
 | |
| 
 | |
| for fn in os.listdir("."):
 | |
|     if not fn.endswith(".txt"):
 | |
|         continue
 | |
|     with open(fn, "rb") as f:
 | |
|         s = f.read().decode("utf-8")
 | |
|     b = codecs.encode(s, "rot_13").encode("utf-8")
 | |
|     with open(fn.replace("txt", "r13"), "wb") as f:
 | |
|         f.write(b)
 |