fir3net
PPS-Firenetbanner-780.5x190-30-03-17

Python - Basic FTP Downloader

This python script will connect to a designated FTP server. Obtain a list of all files, then sort all files with a .jpa extension and then download the latest one.

In order to do this regular expressions are used to build a list of files only containing .jpa file extensions. This list is then sorted by each of the integers contained within each file name.

Download / View Here.

Tags: Python, FTP

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001