The separators that a path has: only /, only \ (a Windows path with no /), or both. Scanning for the ones it has is faster.
/
\
The separators that a path has: only
/, only\(a Windows path with no/), or both. Scanning for the ones it has is faster.