public static async Task WriteFileAsync(this IVirtualFiles vfs, string filePath, Stream stream, CancellationToken token = default) => await vfs.WriteFileAsync(filePath, stream, token).ConfigAwait();
public static async Task WriteFileAsync(this IVirtualFiles vfs, string filePath, byte[] binaryContents, CancellationToken token = default) => await vfs.WriteFileAsync(filePath, binaryContents, token).ConfigAwait();
public static async Task WriteFileAsync(this IVirtualFiles vfs, string filePath, ReadOnlyMemory <byte> romBytes, CancellationToken token = default) => await vfs.WriteFileAsync(filePath, romBytes, token).ConfigAwait();
public static async Task SaveToAsync(this IHttpFile httpFile, IVirtualFiles vfs, string filePath, CancellationToken token = default) { await vfs.WriteFileAsync(filePath, httpFile.InputStream, token).ConfigAwait(); }