Changeset 186

Show
Ignore:
Timestamp:
2002-04-03 22:05:59 (7 years ago)
Author:
schwa
Message:
Documented the problem with (l)stat and RootDirError.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ftputil.txt

    r177 r186  
    4848            ParserError(FTPOSError) 
    4949        FTPIOError(FTPError) 
     50        RootDirError(FTPError) 
    5051 
    5152FTPError is the root of the exception hierarchy of the module. 
     
    126127codes aren't the same.) 
    127128 
     129RootDirError is a special case. Due to the implementation of the 
     130lstat method it is not possible to do a stat on the root directory /. 
     131If you know _any_ way to do it, please let me know. :-) 
     132 
    128133---------------------------------------------------------------------- 
    129134FTPHost OBJECTS 
     
    260265    - Links can only be recognized on servers that provide this 
    261266      information in the DIR output. 
    262        
     267 
    263268    - Items that can't be determined at all, are set to None. 
     269 
     270    - There's a special problem with stat'ing the root directory. In 
     271      this case, a RootDirError is raised. This has to do with the 
     272      algorithm used by (l)stat and a know of no one which solves 
     273      this problem. 
    264274 
    265275    Currently, ftputil recognizes the MS Robin FTP server. Otherwise, 
     
    333343  below-mentioned email address. 
    334344 
     345- Due to the implementation of lstat it can not return a sensible 
     346  value for the root directory /. If you know an implementation that 
     347  can do this, please let me know. The root directory is handled 
     348  appropriately in FTPHost.path.exists/isfile/isdir/islink, though. 
     349 
    335350- Depending on local time and/or daylight saving time settings 
    336351  different local hosts may interpret the modification times in the 
     
    360375ftputil.py 
    361376    is the main module file. 
    362      
     377 
    363378UserTuple.py 
    364379    may be used as the base class for _Stat. If you have at least