linux ftp serverLinux serverNETWORK ADMINISTRATIONS

ftplib python module for download / upload / delete / rename / listing files over FTP server

Blog post for this video – https://nagasudhir.blogspot.com/2022/02/ftp-server-communication-with-ftplib.html

Setup local FTP server (IIS / Filezilla) and FTP client (WinSCP) – https://youtu.be/6gHlAfviiPM

Playlist URL – https://youtube.com/playlist?list=PLCgehTvigkDORG6Jk471vO6njvQpViOXV

Iterating through files inside a folder using the glob module in python – https://youtu.be/Nmt2GqP45nM

Setup Python Development Environment – https://youtu.be/w8MPx1EMNNU

Table of contents – https://nagasudhir.blogspot.com/2020/04/taming-python-table-of-contents.html

Please subscribe, like and share this video

00:00 – Intro
00:37 – Local FTP server and client setup
01:48 – Connecting to FTP server
04:59 – Connect to FTP server with SSL
06:24 – Change working directory (cwd)
07:46 – list the filenames (nlst)
09:38 – upload files (storbinary)
13:43 – download files (retrbinary)
16:38 – rename files
17:19 – delete files
17:47 – create folder (mkd)
18:23 – delete folder (rmd)
18:44 – get file size
19:06 – directory listing (dir)
19:50 – Conclusion

#ftp #ftplib #ftp_client #ftp_server #dev #tutorial #learning #beginners #taming_python

source

by Learning Software

linux ftp server

14 thoughts on “ftplib python module for download / upload / delete / rename / listing files over FTP server

  • Wasting almost half a day trying to access some ftp. u saved my life with the ssl command. Thank u so much!

  • hi iam getting erro:socket.timeout:timeout in ftp

  • Hello, Thank you so much for making this wonderful video, this video is exactly what i was looking for.
    just few more doubts i have, i would really appreciate if you could respond.
    1. is there any way we can copy/move files from one dir to another dir on ftp?

    2. can we read the file on ftp before downloading (as per my requirement i need to check if file is relevant before downloading it).

    Thanks in advance, keep up the good work.

  • Sir, thank you so much for posting.this vid! I wasted 2 hours trying to get Paramiko and PySFTP to work, with no success.

  • Hi is there any process to send file from server location A to another server location B

  • Hi I need to download the names of those files which were uploaded in last 48 hours. How do I extract the time stamp and get those file names?

  • Thank you for a great tutorial! You have a knack for explaining things in its simplest terms! Kudos sir!

  • Thanku so much it helped a lot also can u please tell me if hostname is some IP address instead of localhost so can the code still works because I;m trying and it is showing me some error

  • Thank u it was extremely helpful ,can u also provide a solution about how to find the timestamps of the files on ftp server

Comments are closed.