PathHelper.HasDotSegment Method

Namespace
Kampute.DocToolkit.Support
Assembly
  • Kampute.DocToolkit.dll

Definition

Determines whether the specified path has any dot-segment (i.e., "." or "..").
public static bool HasDotSegment(ReadOnlySpan<char> path)

Parameters

path ReadOnlySpan<char>
The path to examine.

Returns

bool
true if the path contains at least one dot-segment; otherwise, false.