Commit 950e11fa by 李辅翼

v2

parent dd1618c1
......@@ -81,8 +81,9 @@ public class FtpUtil {
if(change) {
flag = ftpClient.storeFile(new String(fileName.getBytes("GBK"),"iso-8859-1"), ins);
} else {
ftpClient.makeDirectory(uploadPath);
ftpClient.changeWorkingDirectory(uploadPath);
boolean flag2=ftpClient.makeDirectory(uploadPath);
boolean flag1=ftpClient.changeWorkingDirectory(uploadPath);
System.out.println(flag2+"-=-----------------="+flag1);
flag = ftpClient.storeFile(fileName, ins);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment