Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.92 KB

File metadata and controls

33 lines (20 loc) · 1.92 KB

VFSConvenienceExtensions.TryGetFile(this IVirtualFileSystem, string, IFileNode) Method

Tries to get a file by its path using a string path.

public static bool TryGetFile(this Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystem vfs, string filePath, out Atypical.VirtualFileSystem.Core.Contracts.IFileNode? file);

Parameters

vfs IVirtualFileSystem

The virtual file system.

filePath System.String

The file path as a string.

file IFileNode

The file node if found.

Returns

System.Boolean
True if the file exists, false otherwise.