IVirtualFileSystem.TryGetDirectory(VFSDirectoryPath,IDirectoryNode).md
January 20, 2026 ยท View on GitHub
Atypical.VirtualFileSystem.Core
Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystem
IVirtualFileSystem.TryGetDirectory(VFSDirectoryPath, IDirectoryNode) Method
Try to get a directory node by its path.
The path must be absolute.
If the directory node does not exist, this method returns false
and directory is set to null.
bool TryGetDirectory(Atypical.VirtualFileSystem.Core.VFSDirectoryPath directoryPath, out Atypical.VirtualFileSystem.Core.Contracts.IDirectoryNode? directory);
Parameters
directoryPath VFSDirectoryPath
The path of the directory node.
directory IDirectoryNode
The directory node.
Returns
System.Boolean
true if the directory node exists; otherwise, false.