ftplib and attributes
Raymond Hettinger
python at rcn.com
Thu Apr 25 15:56:00 EDT 2002
"LoGan" <giannivolontosky at TOGLIyahoo.it> wrote
> hi, im new bie and im trying to use ftplib, but my problem is to get the
> attributes of the files, how can i do ?
> LoGan
>>> from ftplib import *
>>> f = FTP('ftp.myisp.com','python','mypassword')
>>> print f.dir()
drwxrwsr-x 5 python www 8192 Mar 1 16:54 .
drwxrwsr-x 5 python www 8192 Mar 1 16:54 ..
drwxrwsr-x 2 python www 8192 Aug 7 2001 art
-rw-r--r-- 1 python www 2100 Jan 4 1998 atom.gif
-rw-r--r-- 1 python www 97293 Jan 4 1998 boat1.jpg
-rw-r--r-- 1 python www 113540 Jan 4 1998 boat2.jpg
Arrivederci,
Raymond Hettinger
More information about the Python-list
mailing list