Changeset 846:e4cc091e1858

Show
Ignore:
Timestamp:
2010-02-11 09:02:02 (6 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Fixed remote vs. local file in `FTPHost._download`. Unit tests pass.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ftputil.py

    r845 r846  
    500500    def upload(self, source, target, mode=''): 
    501501        #FIXME should we support mode "a" at all? We don't support 
    502         #  appending! 
     502        #  appending on remote files! 
    503503        """ 
    504504        Upload a file from the local source (name) to the remote 
     
    527527        """ 
    528528        source_mode, target_mode = self.__get_modes(mode) 
    529         source_file = _TransferredFile(None, source, source_mode) 
    530         target_file = _TransferredFile(self, target, target_mode) 
     529        source_file = _TransferredFile(self, source, source_mode) 
     530        target_file = _TransferredFile(None, target, target_mode) 
    531531        return self.__copy_file(source_file, target_file, conditional) 
    532532