path-array reliably converts a file path string into an array of path segments. Unlike simple string splitting, it intelligently handles edge cases like Windows paths, UNC paths, and leading/trailing slashes, ensuring consistent and accurate segment extraction across platforms. Useful for traversing file system structures, manipulating paths programmatically, and creating platform-agnostic tooling. Simplifies path processing by providing a normalized, array-based representation of any file path.