Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...