search

Home  >  Q&A  >  body text

paramiko - Can files generated by Python tempfile be copied to a remote server?

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?

滿天的星座滿天的星座2796 days ago816

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-18 10:48:12

    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.

    reply
    0
  • Cancelreply