IFileExtensions Class
Namespace
Statiq.Common
Base Types
  • object
graph BT Type-->Base0["object"] Type["IFileExtensions"] class Type type-node

Syntax

public static class IFileExtensions

Methods

Name Return Value Summary
AppendFromAsync(IFile, Stream, bool, CancellationToken) Task
Copies from a source stream to a file, appending to the end of the file.
static
CopyToAsync(IFile, IFile, bool, bool, CancellationToken) Task
Copies the file to the specified destination file, truncating any remaining data in the destination file.
static
CopyToAsync(IFile, Stream, CancellationToken) Task
Copies from a file to a destination stream.
static
DeserializeJsonAsync(IFile, Type, JsonSerializerOptions, CancellationToken) ValueTask<object>
static
DeserializeJsonAsync<TValue>(IFile, JsonSerializerOptions, CancellationToken) ValueTask<TValue>
static
MoveToAsync(IFile, IFile, CancellationToken) Task
Moves the file to the specified destination file, truncating any remaining data in the destination file.
static
SerializeJsonAsync(IFile, object, Type, bool, JsonSerializerOptions, CancellationToken) Task
static
SerializeJsonAsync(IFile, object, Type, JsonSerializerOptions, CancellationToken) Task
static
SerializeJsonAsync<TValue>(IFile, TValue, bool, JsonSerializerOptions, CancellationToken) Task
static
SerializeJsonAsync<TValue>(IFile, TValue, JsonSerializerOptions, CancellationToken) Task
static
WriteFromAsync(IFile, Stream, bool, bool, CancellationToken) Task
Copies from a source stream to a file, truncating any remaining data in the destination file.
static