实现sftp的文件夹上传服务器
使用
const resolve=const localDir=const sftpcopy=;const config = host: '127.178.2.2' port: '22' username: 'root' password: '123456' copys: //文件夹上传服务器 type:"dir" from: //本地地址 to:"/data/app/wct.smart-led.club/public/includes" //服务器地址 // 文件上传服务器 type:"file" from: to:"/data/app/wct.smart-led.club/public/entry.html" { let res=await console}