robinrodricks / FluentStorage

A polycloud .NET cloud storage abstraction layer. Provides Blob storage (AWS S3, GCP, FTP, SFTP, Azure Blob/File/Event Hub/Data Lake) and Messaging (AWS SQS, Azure Queue/ServiceBus). Supports .NET 5+ and .NET Standard 2.0+. Pure C#.
MIT License
263 stars 33 forks source link

[Bug] FluentStorage.SFTP WriteAsync with append=true does not do anything #58

Closed beeradmoore closed 7 months ago

beeradmoore commented 7 months ago

The append argument does not appear to do anything in WriteAsync for FluentStorage.SFTP.

await remoteStorage.WriteAsync("/home/test/test_document_2", new byte[] { (byte)'1' }, true);

If I run this multiple times I'd expect 1 to be appended to the file, but it is not.

PR #57 was updated to solve this.

robinrodricks commented 7 months ago

Fixed by OP.