diff --git "a/Utility\345\237\272\347\241\200\347\261\273\345\244\247\345\205\250/FTP\346\223\215\344\275\234\347\261\273/FTPHelper.cs" "b/Utility\345\237\272\347\241\200\347\261\273\345\244\247\345\205\250/FTP\346\223\215\344\275\234\347\261\273/FTPHelper.cs" index 436fbcf..afa837f 100644 --- "a/Utility\345\237\272\347\241\200\347\261\273\345\244\247\345\205\250/FTP\346\223\215\344\275\234\347\261\273/FTPHelper.cs" +++ "b/Utility\345\237\272\347\241\200\347\261\273\345\244\247\345\205\250/FTP\346\223\215\344\275\234\347\261\273/FTPHelper.cs" @@ -212,7 +212,7 @@ public string[] GetFileList(string url) { reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(url)); reqFTP.UseBinary = true; - reqFTP.Credentials = new NetworkCredential(ftpPassword, ftpPassword); + reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword); reqFTP.Method = WebRequestMethods.Ftp.ListDirectoryDetails; WebResponse response = reqFTP.GetResponse(); StreamReader reader = new StreamReader(response.GetResponseStream()); @@ -347,4 +347,4 @@ public void GotoDirectory(string DirectoryName, bool IsRoot) ftpURI = "ftp://" + ftpServerIP + "/" + ftpRemotePath + "/"; } } -} \ No newline at end of file +}