protected function tokenizePath($path)
    {
        $parts = explode($this->pathSeparator, $path);
        if ($this->trimTokens) {
            for ($i = 0; $i < count($parts); $i++) {
                $parts[$i] = trim($parts[$i]);
                if ($parts[$i] === "") {
                    unset($parts[$i]);
                }
            }
        }
        return array_values($parts);
    }