ftplib and attributes
Daniel Dittmar
daniel.dittmar at sap.com
Fri Apr 26 04:44:31 EDT 2002
LoGan 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 ?
Although you have to use .dir () as the other posters have written, it is
important to know that different ftp servers will format the information in
different ways.
One very annoying feature of many UNIX based ftp servers is the following:
drwxrwsr-x 5 python www 8192 Mar 1 16:54 ..
drwxrwsr-x 2 python www 8192 Aug 7 2001 art
Note how a recent file/directory has a time, where as an older file will
have a year instead.
Daniel
More information about the Python-list
mailing list