0707 ljc afl模块文件操作以及入库操作以及时序表操作等接口开发,包含分片代码以及文件工具类代码

This commit is contained in:
HopeLi 2025-07-07 16:55:36 +08:00
parent 0262356e2d
commit ce07a57203

View File

@ -870,10 +870,15 @@ public class SftpUploadUtil {
channelSftp = (ChannelSftp) channel; channelSftp = (ChannelSftp) channel;
if (remoteDir.contains("default")){
String chmodDir = remoteDir.substring(0, remoteDir.indexOf("default")); String chmodDir = remoteDir.substring(0, remoteDir.indexOf("default"));
log.info("分配权限路径,{}",chmodDir); log.info("分配权限路径,{}",chmodDir);
// 切换目录并列出内容用于调试
sudoChmodORwx(session,chmodDir,password); sudoChmodORwx(session,chmodDir,password);
} else {
log.warn("路径中未找到 'default',跳过权限设置。当前路径: {}", remoteDir);
}
// 切换目录并列出内容用于调试
// 切换到目标目录 // 切换到目标目录
channelSftp.cd(remoteDir); channelSftp.cd(remoteDir);