C# FTP 550 error

前端 未结 6 840
抹茶落季
抹茶落季 2021-01-20 03:31

I\'m trying to programatically download a file in C# via FTP, here is the relevant code (obviously with fake credntials and URI):

try
{
    var request = Ftp         


        
6条回答
  •  耶瑟儿~
    2021-01-20 04:35

    Put another slash at the beginning of the local path part (after hostname:port):

    var request = FtpWebRequest.Create("ftp://ftp.mydomain.com//folder/file.zip");
    

    This has worked for me.

提交回复
热议问题