Changeset 547

Show
Ignore:
Timestamp:
2006-08-07 13:30:26 (2 years ago)
Author:
schwa
Message:
FTPHost.file: Changed wording of error message to include that the directory
might not exist at all.
Files:

Legend:

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

    r529 r547  
    241241            # similarly to a failed `file` in a local filesystem, we 
    242242            #  raise an `IOError`, not an `OSError` 
    243             raise ftp_error.FTPIOError("directory '%s' is not accessible" % 
    244                                       effective_dir) 
     243            raise ftp_error.FTPIOError("directory '%s' doesn't exist or " 
     244                  "has insufficient access rights" % effective_dir) 
    245245        host._file._open(effective_file, mode) 
    246246        return host._file 
     
    551551        else: 
    552552            raise ftp_error.PermanentError("remove/unlink can only delete " 
    553                                                       "files and links, not directories") 
     553                                           "files and links, not directories") 
    554554 
    555555    def unlink(self, path):