ifolder是一个python包,用于使用tcp套接字传输文件和文件夹
ifolder的Python项目详细描述
#假如 ifolder是一个python包,用于使用tcp套接字传输文件和文件夹。
接收器
fromifolderimportReceiver# replace this path to a valid one on this machinetoPATH='/Users/xxxx/Desktop/copyto'rx=Receiver()whileTrue:rx.save_files_to(toPATH)
发件人
fromifolderimportSenderip=('127.0.0.1',10086)# files or folders to be sent. should be a listfiles=['/Users/xxx/Desktop/TEST.pdf',]tx=Sender(ip)tx.send(files)