~sschwarzer/ftputil

ref: c6d0136bf66260c302304a9c53848e08337d405d ftputil/sandbox/test_ticket_71.py -rwxr-xr-x 411 bytes
c6d0136bStefan Schwarzer Mention that `account` and `session_factory` normally aren't needed 6 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /usr/bin/env python

import ftplib
import ftputil


ftp_host = ftputil.FTPHost("localhost", "ftptest",
                           "d605581757de5eb56d568a4419f4126e")
ftp_host._session.set_debuglevel(2)
#import pdb; pdb.set_trace()
ftp_host.listdir("/rootdir2")

print

ftp = ftplib.FTP("localhost", "ftptest", "d605581757de5eb56d568a4419f4126e")
ftp.set_debuglevel(2)
ftp.cwd("/")
ftp.cwd("/")
ftp.dir("-a")