刘韬 2 years ago
parent
commit
9aa7d6406d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      DataFusion/src/com/zskk/control/ViewController.java

+ 1 - 1
DataFusion/src/com/zskk/control/ViewController.java

@@ -102,7 +102,7 @@ public class ViewController extends Controller {
             	 File localFile = new File("/home/zskk/FTP_FILE" + File.separatorChar + allFile[i].getName());
                  OutputStream os = new FileOutputStream(localFile);
                  //ftp中文名需要iso-8859-1字符
-                 boolean flag2 = ftpClient.retrieveFile(allFile[i].getName(), os);
+                 boolean flag2 = ftpClient.retrieveFile(remoteFileName+File.separatorChar+allFile[i].getName(), os);
                  if (!flag2) {
                  	fileName=fileName+ allFile[i].getName();