Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.75 KB

File metadata and controls

33 lines (20 loc) · 1.75 KB

VFSSafeExtensions.TryWriteFile(this IVirtualFileSystem, string, string) Method

Safely writes file content without throwing exceptions.

public static bool TryWriteFile(this Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystem vfs, string filePath, string content);

Parameters

vfs IVirtualFileSystem

The virtual file system.

filePath System.String

The file path as a string.

content System.String

The content to write.

Returns

System.Boolean
True if the file content was written successfully, false otherwise.