VFSPathExtensions.HasExtension(thisVFSPath,string,bool).md
January 20, 2026 ยท View on GitHub
Atypical.VirtualFileSystem.Core
Atypical.VirtualFileSystem.Core.Extensions.VFSPathExtensions
VFSPathExtensions.HasExtension(this VFSPath, string, bool) Method
Checks if the path has a specific extension.
public static bool HasExtension(this Atypical.VirtualFileSystem.Core.VFSPath path, string extension, bool ignoreCase=true);
Parameters
path VFSPath
The VFS path.
extension System.String
The extension to check (with or without leading dot).
ignoreCase System.Boolean
Whether to ignore case. Default is true.
Returns
System.Boolean
True if the path has the specified extension.