IVirtualFileSystem.TryGetFile(VFSFilePath,IFileNode).md

January 20, 2026 ยท View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystem

IVirtualFileSystem.TryGetFile(VFSFilePath, IFileNode) Method

Try to get a file node by its path. The path must be absolute.

bool TryGetFile(Atypical.VirtualFileSystem.Core.VFSFilePath filePath, out Atypical.VirtualFileSystem.Core.Contracts.IFileNode? file);

Parameters

filePath VFSFilePath

The path of the file node.

file IFileNode

The file node.

Returns

System.Boolean
true if the file node exists; otherwise, false.