We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57fb21a + 165f8cb commit b94800cCopy full SHA for b94800c
Utility基础类大全/FTP操作类/FTPHelper.cs
@@ -212,7 +212,7 @@ public string[] GetFileList(string url)
212
{
213
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(url));
214
reqFTP.UseBinary = true;
215
- reqFTP.Credentials = new NetworkCredential(ftpPassword, ftpPassword);
+ reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
216
reqFTP.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
217
WebResponse response = reqFTP.GetResponse();
218
StreamReader reader = new StreamReader(response.GetResponseStream());
@@ -347,4 +347,4 @@ public void GotoDirectory(string DirectoryName, bool IsRoot)
347
ftpURI = "ftp://" + ftpServerIP + "/" + ftpRemotePath + "/";
348
}
349
350
-}
+}
0 commit comments