relative ftp path using UriBuilder or Uri impossible?

  • Thread starter Thread starter Sam Jost
  • Start date Start date
S

Sam Jost

I want to make a FtpWebRequest to download some files.

My problem is: the ftp server does not put me into the root dir of the
file system.
So I need to access a path like:

ftp://ftp.myserver.com/../../var/log/httpd/

UriBuilder and Uri always strip the ../../ part of this uri, so
FtpWebRequest can't find the path, I can't download.

Using the above uri in the internet explorer does work, so I am very
sure it is the right one.

Is there any way to make a legal uri from this string? It is very
annoying not to be able to access this dir just because the uri thinks
it looks funny :(

Thanks,
Sam
 
Back
Top