import ftplib

server = 'ftp.debian.org'
username = 'anonymous'
password = 'anonymous'

# Initialize and pass in FTP URL and login credentials (if applicable)
ftp = ftplib.FTP(host=server, user=username, passwd=password)

# Create a list to receive the data
data = []

# change into the debian directory
ftp.cwd('debian')

# Append the directories and files to the list
ftp.dir(data.append)

# Close the connection
ftp.quit()

# Print out the directories and files, line by line
for l in data:
    print(l)

adce92e18abfd56962416aedb82f9e175b6ce3b2
<mask token>

<mask token>
ftp.cwd('debian')
ftp.dir(data.append)
ftp.quit()
for l in data:
    print(l)

<mask token>
server = 'ftp.debian.org'
username = 'anonymous'
password = 'anonymous'
ftp = ftplib.FTP(host=server, user=username, passwd=password)
data = []
ftp.cwd('debian')
ftp.dir(data.append)
ftp.quit()
for l in data:
    print(l)

import ftplib
server = 'ftp.debian.org'
username = 'anonymous'
password = 'anonymous'
ftp = ftplib.FTP(host=server, user=username, passwd=password)
data = []
ftp.cwd('debian')
ftp.dir(data.append)
ftp.quit()
for l in data:
    print(l)

import ftplib

server = 'ftp.debian.org'
username = 'anonymous'
password = 'anonymous'

# Initialize and pass in FTP URL and login credentials (if applicable)
ftp = ftplib.FTP(host=server, user=username, passwd=password)

# Create a list to receive the data
data = []

# change into the debian directory
ftp.cwd('debian')

# Append the directories and files to the list
ftp.dir(data.append)

# Close the connection
ftp.quit()

# Print out the directories and files, line by line
for l in data:
    print(l)
