Divides a path string into segments using path separators.
The path string to divide
Configuration options for path division
Whether to trim whitespace from segments
Whether to collapse consecutive separators and filter empty segments
Array of path segments
Divides a path string into segments using path separators.