提交 efa3b1f4 编写于 作者: qq_51543278's avatar qq_51543278

Signed-off-by: CC

上级 3549d54a
......@@ -3,7 +3,7 @@
<component name="CodeInsightWorkspaceSettings">
<option name="optimizeImportsOnTheFly" value="true" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
......@@ -37,5 +37,21 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="JUnit5.7.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter/5.7.0/junit-jupiter-5.7.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-api/5.7.0/junit-jupiter-api-5.7.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-commons/1.7.0/junit-platform-commons-1.7.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-params/5.7.0/junit-jupiter-params-5.7.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-engine/5.7.0/junit-jupiter-engine-5.7.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-engine/1.7.0/junit-platform-engine-1.7.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>
\ No newline at end of file
package ftp;
import org.apache.commons.net.ftp.FTPClient;
import java.io.IOException;
public class FTPmain {
public static void main(String[] args) throws IOException, InterruptedException {
FTPClient ftpClient=ftp.Connect.connectFtpServer("43.139.43.93",21,"1","Qaz112","GBK");
Global.setFTPClient(ftpClient);
UI test=new UI();
ftp.Connect.isConnected(ftpClient);
//List<Fileinfo> list=FileView.viewFile(ftpClient);
// FileView.EnterFolder(ftpClient,"11.10Test");
// System.out.println(ftpClient.printWorkingDirectory());
// FileView.BackPreviousFolder(ftpClient);
// List<Fileinfo> list_=FileView.viewFile_local();
// System.out.println(FileView.IsRoot(ftpClient));
// System.out.println(ftpClient.printWorkingDirectory());
// TaskList taskList=new TaskList();
// taskList.newUpload(ftpClient,"D:\\1537639\\画画用的\\4543.jpg");
//File file=new File("D:\\1537639\\画画用的\\4543.jpg");
//TaskList t=new TaskList();
//t.newDownload("1cy","D:\\",ftpClient);
//t.newDownload("2.png","D:\\3D66",ftpClient);
//DeleteFiles deleteFiles=new DeleteFiles();
//deleteFiles.deleteServerFiles(ftpClient,"1cy","/");
// t.newDownload(ftpClient,"3231.png","D:\\3D66");
//t.newDownload(ftpClient,"student.txt","D:\\3D66");
//Download d = new Download(null,ftpClient,"11.10Test","D:\\",t,"/");
// Download d_ = new Download(null,ftpClient,"1.png","D:\\3D66",t,"/");
// new Thread(d).start();
//new Thread(d_).start();
// List<TaskList.Transport_info> taskList=t.getTasklist();
/*try {
System.out.println(ftpClient.printWorkingDirectory());
}
catch (Exception e)
{
System.out.println("fail");
}*/
}
}
......@@ -102,26 +102,6 @@ public class UI extends JFrame {
}
/*@Override
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand() == "连接") {
if(jTextField1.getText()==null||jTextField2.getText()==""||jTextField3.getText()==""||jPasswordField.getText()==""){
JOptionPane .showMessageDialog(null,"输入不能为空","",JOptionPane.PLAIN_MESSAGE);
}
else{
//建立连接的代码
}
} else if (e.getActionCommand() == "断开连接") {//如果事件源是 jbClear,那么清除文本框的文字
//断开连接的代码
}
}*/
class jButton1event implements ActionListener{
@Override
public void actionPerformed(ActionEvent e) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册