@@ -1435,38 +1435,38 @@ def copydir(self, src, dst, overwrite=False, ignore_errors=False, chunk_size=163
14351435
14361436if __name__ == "__main__" :
14371437
1438- ftp_fs = FTPFS ('ftp.ncsa.uiuc.edu' )
1439- ftp_fs .cache_hint (True )
1440- from fs .browsewin import browse
1441- browse (ftp_fs )
1438+ ftp_fs = FTPFS ('ftp.ncsa.uiuc.edu' )
1439+ ftp_fs .cache_hint (True )
1440+ from fs .browsewin import browse
1441+ browse (ftp_fs )
14421442
1443- #ftp_fs = FTPFS('127.0.0.1', 'user', '12345', dircache=True)
1444- #f = ftp_fs.open('testout.txt', 'w')
1445- #f.write("Testing writing to an ftp file!")
1446- #f.write("\nHai!")
1447- #f.close()
1443+ #ftp_fs = FTPFS('127.0.0.1', 'user', '12345', dircache=True)
1444+ #f = ftp_fs.open('testout.txt', 'w')
1445+ #f.write("Testing writing to an ftp file!")
1446+ #f.write("\nHai!")
1447+ #f.close()
14481448
1449- #ftp_fs.createfile(u"\N{GREEK CAPITAL LETTER KAPPA}", 'unicode!')
1449+ #ftp_fs.createfile(u"\N{GREEK CAPITAL LETTER KAPPA}", 'unicode!')
14501450
1451- #kappa = u"\N{GREEK CAPITAL LETTER KAPPA}"
1452- #ftp_fs.makedir(kappa)
1451+ #kappa = u"\N{GREEK CAPITAL LETTER KAPPA}"
1452+ #ftp_fs.makedir(kappa)
14531453
1454- #print repr(ftp_fs.listdir())
1454+ #print repr(ftp_fs.listdir())
14551455
1456- #print repr(ftp_fs.listdir())
1456+ #print repr(ftp_fs.listdir())
14571457
1458- #ftp_fs.makedir('a/b/c/d', recursive=True)
1459- #print ftp_fs.getsize('/testout.txt')
1458+ #ftp_fs.makedir('a/b/c/d', recursive=True)
1459+ #print ftp_fs.getsize('/testout.txt')
14601460
14611461
1462- #print f.read()
1463- #for p in ftp_fs:
1464- # print p
1462+ #print f.read()
1463+ #for p in ftp_fs:
1464+ # print p
14651465
1466- #from fs.utils import print_fs
1467- #print_fs(ftp_fs)
1466+ #from fs.utils import print_fs
1467+ #print_fs(ftp_fs)
14681468
1469- #print ftp_fs.getsize('test.txt')
1469+ #print ftp_fs.getsize('test.txt')
14701470
1471- #from fs.browsewin import browse
1472- #browse(ftp_fs)
1471+ #from fs.browsewin import browse
1472+ #browse(ftp_fs)
0 commit comments