How to upload file with append mode?
Open
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 620
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 11
Description
I have many little files, i want to combine theirs into a new file on SFTP server
I have try to use RemoteFile, open file and set file open mode as 'WRITE' and 'APPEND' ,example:
```
EnumSet modeEnumSet = EnumSet.of(OpenMode.WRITE, OpenMode.APPEND);
RemoteFile rf = sftpClient.open(fileName, modeEnumSet);
try (RemoteFile.RemoteFileOutputStream os = rf.new RemoteFileOutputStream(0, 10)) {
IOUtils.write(inputStream, os);
}
```
but i found is also run as 'CREAT' mode, it's cover the file on SFTP server when write call write method
but,how to run with append mode?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.