Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- host = 'ftp.avm.de'
- user = 'anonymous'
- passwd = ''
- import ftputil
- with ftputil.FTPHost(host, user, passwd) as ftp:
- print(ftp.listdir('.'))
- import ftplib
- with ftplib.FTP(host, user, passwd) as ftp:
- print(ftp.nlst('.'))
- ['archive', 'fritzbox', 'fritzpowerline', 'fritzwlan']
- ['archive', 'fritzbox', 'fritzpowerline', 'fritzwlan']
- []
- ['1', '2', '3']
Add Comment
Please, Sign In to add comment