

def setUp(self):
    ' Creates structure\n\n        /test\n        /test/file1\n        /test/hola/\n        /test/hola/file2\n        /test/hola/singlefile\n        /test/hola/file3\n        '
    ftp = ftplib.FTP(HOST, USER, PWD)
    ftp.cwd('/')
    ftp.mkd('test')
    ftp.cwd('test')
    ftp.mkd('hola')
    ftp.cwd('hola')
    f2 = StringIO(FILE2)
    ftp.storbinary('STOR file2', f2)
    f3 = StringIO(FILE3)
    ftp.storbinary('STOR file3', f3)
    ftp.cwd('..')
    f1 = StringIO(FILE1)
    ftp.storbinary('STOR file1', f1)
    ftp.close()

dataset/ETHPy150Open spotify/luigi/test/_test_ftp.py TestFTPFilesystem.setUp/original