|
|
@ -74,7 +74,7 @@ public class TradeSecureServiceHanyinImpl implements TradeSecureService {
|
|
|
|
logger.debug("mk dir:{}", dir);
|
|
|
|
logger.debug("mk dir:{}", dir);
|
|
|
|
command.mkdir(dir);
|
|
|
|
command.mkdir(dir);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String dest = dir + file.filename();
|
|
|
|
String dest = dir + "/" + file.filename();
|
|
|
|
logger.debug("find dir, start uploading file:{}", dest);
|
|
|
|
logger.debug("find dir, start uploading file:{}", dest);
|
|
|
|
command.put(new ByteArrayInputStream(file.content()), dest);
|
|
|
|
command.put(new ByteArrayInputStream(file.content()), dest);
|
|
|
|
} catch (IOException | JSchException | SftpException e) {
|
|
|
|
} catch (IOException | JSchException | SftpException e) {
|
|
|
|