Changeset 846:e4cc091e1858
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r845
|
r846
|
|
| 500 | 500 | def upload(self, source, target, mode=''): |
| 501 | 501 | #FIXME should we support mode "a" at all? We don't support |
| 502 | | # appending! |
| | 502 | # appending on remote files! |
| 503 | 503 | """ |
| 504 | 504 | Upload a file from the local source (name) to the remote |
| … |
… |
|
| 527 | 527 | """ |
| 528 | 528 | 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) |
| 531 | 531 | return self.__copy_file(source_file, target_file, conditional) |
| 532 | 532 | |