mirror of
				https://github.com/9001/copyparty.git
				synced 2025-11-03 21:43:12 +00: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)
 |