Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.88 KB

File metadata and controls

33 lines (20 loc) · 1.88 KB

VFSConvenienceExtensions.CreateFile(this IVirtualFileSystem, string, string) Method

Creates a file with the specified path and content using a string path.

public static Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystem CreateFile(this Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystem vfs, string filePath, string? content=null);

Parameters

vfs IVirtualFileSystem

The virtual file system.

filePath System.String

The file path as a string.

content System.String

The file content. Defaults to empty string if null.

Returns

IVirtualFileSystem
The virtual file system for method chaining.