|  |  | 
 |  |  |       return false; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public boolean uploadInputstreamBatch(InputStream inputStream, String remote, Boolean close)  { | 
 |  |  |    public boolean uploadInputstreamBatch(InputStream inputStream, String remote, Boolean close , Integer index )  { | 
 |  |  |       // 设置PassiveMode传输 | 
 |  |  |       try { | 
 |  |  |          ftpClient.enterLocalPassiveMode(); | 
 |  |  | 
 |  |  |          if (remote.contains("/")) { | 
 |  |  |             remoteFileName = remote.substring(remote.lastIndexOf("/") + 1); | 
 |  |  |             // 创建服务器远程目录结构,创建失败直接返回 | 
 |  |  |             if (StringUtils.equals(CreateDirecroty(remote, ftpClient), "2")) { | 
 |  |  |             if (Constants.equalsInteger(index,Constants.ONE) && StringUtils.equals(CreateDirecroty(remote, ftpClient), "2")) { | 
 |  |  |                log.error("创建ftp目录失败======================="+remote); | 
 |  |  |                return false; | 
 |  |  |             } |