VFS.TryGetFile(VFSFilePath,IFileNode).md

January 20, 2026 ยท View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core.VFS

VFS.TryGetFile(VFSFilePath, IFileNode) Method

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

public 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.

Implements TryGetFile(VFSFilePath, IFileNode)

Returns

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