mirror of
				https://github.com/9001/copyparty.git
				synced 2025-10-31 04:32:20 -06: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"
 |