Files
spring-integration/spring-integration-sftp
Artem Bilan cb5eafe8bd GH-9123: SFTP: Use canonicalPath for read operation
Fixes: #9123

The `/` at the beginning of the remote dir path is not necessary when listing files, although it is necessary to download them
The `SftpTemplate.get()` should work also with `remote-dir/MyFile.csv` as input.

* Fix `SftpSession.readRaw()` to call `sftpClient.canonicalPath(source)` if the path does not start with a `/`.
Something similar what is does
* Delegate to `SftpSession.readRaw()` from the `SftpSession.read()`
* Reuse `normalizePath()` for `doList()`

(cherry picked from commit a2215afdf7)
2024-05-07 17:46:50 +00:00
..
2016-05-03 11:55:55 -04:00