Copies from a source stream to a file, appending to the end of the file.
- Namespace
- Statiq
.Common - Containing Type
- IFileExtensions
Syntax
public static Task AppendFromAsync(this IFile destinationFile, Stream sourceStream, bool createDirectory = true, CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Name | Type | Description |
|---|---|---|
| destinationFile | IFile | |
| sourceStream | Stream | |
| createDirectory | bool | |
| cancellationToken | CancellationToken |
Return Value
| Type | Description |
|---|---|
| Task |