Commit 010a323446ff46dc63e471f20fb04965cb45e696
- Diff rendering mode:
- inline
- side by side
spring-integration-ftp/src/main/java/org/springframework/integration/ftp/session/FtpSession.java
(2 / 1)
|   | |||
| 79 | 79 | Assert.hasText(path, "path must not be null"); | |
| 80 | 80 | boolean completed = client.storeFile(path, inputStream); | |
| 81 | 81 | if (!completed){ | |
| 82 | throw new IOException("Failed to write to '" + (path+FileWritingMessageHandler.TEMPORARY_FILE_SUFFIX) | ||
| 82 | throw new IOException("Failed to write to '" + path | ||
| 83 | 83 | + "'. Server replied with: " + client.getReplyString()); | |
| 84 | 84 | } | |
| 85 | 85 | logger.info("File have been successfully transfered to: " + path); | |
| … | … | ||
| 106 | 106 | } | |
| 107 | 107 | ||
| 108 | 108 | public void rename(String pathFrom, String pathTo) throws IOException{ | |
| 109 | client.deleteFile(pathTo); | ||
| 109 | 110 | boolean completed = client.rename(pathFrom, pathTo); | |
| 110 | 111 | if (!completed){ | |
| 111 | 112 | throw new IOException("Failed to rename '" + pathFrom + |
Comments
Add your comment
Please log in to comment



Add a new comment:
Login or create an account to post a comment