SCPUpload/SCPDownload: Space in remote file names behaves differently
Open
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 620
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 11
Description
Hi,
While it is possible to upload (SCPUploadClient) a file to a remote location containing spaces in its remote filename, this is not possible for download (SCPDownloadClient)
* SCPUploadClient uses ScpCommandLine.EscapeMode.SingleQuote
* SCPDownloadClient uses ScpCommandLine.EscapeMode.NoEscape
Shouldn't both implementations use the same default EscapeMode?
My current workaround is
```
client.newSCPFileTransfer().newSCPDownloadClient().copy(remote, new FileSystemFile(local), ScpCommandLine.EscapeMode.SingleQuote);
```
instead of
```
client.newSCPFileTransfer().download(remote, local);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.