Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.9 KB

File metadata and controls

33 lines (20 loc) · 1.9 KB

VFSBinaryExtensions.TryCreateBinaryFile(this IVirtualFileSystem, string, byte[]) Method

Safely creates a binary file without throwing exceptions.

public static bool TryCreateBinaryFile(this Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystem vfs, string filePath, byte[] binaryContent);

Parameters

vfs IVirtualFileSystem

The virtual file system.

filePath System.String

The file path as a string.

binaryContent System.Byte[]

The binary content of the file.

Returns

System.Boolean
True if the binary file was created successfully, false otherwise.