Skip to content

Commit b94800c

Browse files
author
Jimmey-Jiang
authored
Merge pull request #16 from FangJY/patch-1
Update FTPHelper.cs
2 parents 57fb21a + 165f8cb commit b94800c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Utility基础类大全/FTP操作类/FTPHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public string[] GetFileList(string url)
212212
{
213213
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(url));
214214
reqFTP.UseBinary = true;
215-
reqFTP.Credentials = new NetworkCredential(ftpPassword, ftpPassword);
215+
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
216216
reqFTP.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
217217
WebResponse response = reqFTP.GetResponse();
218218
StreamReader reader = new StreamReader(response.GetResponseStream());
@@ -347,4 +347,4 @@ public void GotoDirectory(string DirectoryName, bool IsRoot)
347347
ftpURI = "ftp://" + ftpServerIP + "/" + ftpRemotePath + "/";
348348
}
349349
}
350-
}
350+
}

0 commit comments

Comments
 (0)