I want to use functions of Path class (`GetDirectoryName`, `GetFileName`, `Combine`,etc.) with paths in URL format with slash (/).

Example of my path:

`"xxx://server/folder1/folder2/file"`

I tried to do the job with `Path` functions and in the end just replaced the separator. 

I've found that the `GetDirectoryName` function does not correctly replace the slashes:

`Path.GetDirectoryName(@"xxx://server/folder/file") -> @"xxx:\server\folder"`

Like you see one slash is lost.

How can I cause the Path functions to use the 'alternative' separator?

Can I use another class with the same functionality?