Vuoi imparare come caricare file su un server FTP usando Python? In questo tutorial, ti mostreremo come utilizzare Python per caricare un file su un server FTP su Linux.

• Ubuntu 20
• Ubuntu 19
• Ubuntu 18
• Python 3.8.5
• Python 2.7.18

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Esercitazione correlata - Python

In questa pagina, offriamo un rapido accesso a un elenco di tutorial relativi a Python.

Esercitazione Python 3 - Caricare file sul server FTP

Caricare un file sul server FTP utilizzando Python.

Copy to Clipboard

Nel nostro esempio, abbiamo caricato un file di testo denominato TEST dalla directory TMP al server FTP.

Nel nostro esempio, abbiamo usato la modalità binaria.

Elencare i file remoti dal server FTP utilizzando Python.

Copy to Clipboard

Ecco l'output del comando.

Copy to Clipboard

Congratulazioni! Puoi caricare file su un server FTP utilizzando Python 3.

Esercitazione Python 2 - Caricare file sul server FTP

Caricare un file sul server FTP utilizzando Python 2.

Copy to Clipboard

Congratulazioni! Puoi caricare file su un server FTP utilizzando Python 2.