private function encodePath($path)
    {
        $path = $this->normalisePath($path);
        $path = str_replace('%2F', '/', rawurlencode($path));
        return $path;
    }
private function encodePath($path)
    {
        $path = $this->normalisePath($path);
        $path = str_replace('%2F', '/', rawurlencode($path));
        return $path;
    }
private function encodePath ( $ path ) { $ path = $ this -> normalisePath ( $ path ) ; $ path = str_replace ( '%2F' , '/' , rawurlencode ( $ path ) ) ; return $ path ; }
Encode the path, then replace encoded slashes
with literal forward slash characters
@param string $path The path to encode
@return string
Encode the path then replace encoded slashes with literal forward slash characters