I have an ftp path that looks like this:
ftp://my|user|name:mypassword@example.com/Test/file.txt 
I'm trying to use two functions from Path:
1. Path.GetDirectoryName
2. Path.Combine 
Both return "illegal character in path".
What is the best solution to solve this problem? I need to get directory and I need to combine it with different file url.
 
     
    
 
    