mirror of
				https://github.com/9001/copyparty.git
				synced 2025-11-03 21:43:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			233 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			233 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
# create a dummy file and let copyparty return it
 | 
						|
 | 
						|
 | 
						|
def main(cli, vn, rem):
 | 
						|
    print("hello", cli.ip)
 | 
						|
 | 
						|
    abspath = vn.canonical(rem)
 | 
						|
    with open(abspath, "wb") as f:
 | 
						|
        f.write(b"404? not on MY watch!")
 | 
						|
 | 
						|
    return "retry"
 |