paramiko - Can files generated by Python tempfile be copied to a remote server?
滿天的星座
滿天的星座 2017-05-18 10:46:12
0
1
767

The current situation is like this. I used python to generate a temporary file based on the parameters passed from the front-end page, the tempfile module, and then I wanted to transfer this temporary file to the remote server. I planned to use the paramiko module. The question now is whether the tempfile file can be copied to a remote location? If not, is there a more suitable module to support it... Besides paramiko, what else is more suitable for remote copy?

滿天的星座
滿天的星座

reply all(1)
曾经蜡笔没有小新

Since it is a temporary file, it will naturally cease to exist after the program is closed. If you want to copy remotely, consider using ssh or rsync.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template