I'm having some problem with the dot net ftpWebRequest client. I'm trying to download a file located in the root folder of a FTP server. The default home directory for the server is different from the root. What happens is, the ftpWebRequest client changes to home directory when it get's connected.
here is an example:
the home directory is /home/something/
the file I want to download is located at /mydirectory/
so if i try to download the file (/mydirectory/myfile.file), it will try to download it from (/home/something/mydirectory/myfile.file) which obviously does not exist. So the server returns a file not found error
I couldn't find anyway to change the currnt directory to to root.
Is there any way i can change it to root or is there any other solution for this?
Thanks
here is an example:
the home directory is /home/something/
the file I want to download is located at /mydirectory/
so if i try to download the file (/mydirectory/myfile.file), it will try to download it from (/home/something/mydirectory/myfile.file) which obviously does not exist. So the server returns a file not found error
I couldn't find anyway to change the currnt directory to to root.
Is there any way i can change it to root or is there any other solution for this?
Thanks