sftp_upload_dir
Upload and extract an entire local directory tree to a remote host over SFTP, applying .gitignore and custom exclude patterns during transfer.
Instructions
基于纯 JS 内存流式 Tar 架构将宿主机本地整个目录树批量打包上传至远程主机并解压
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | 宿主机本地待上传目录的绝对路径 | |
| remotePath | Yes | 远程目标解包目录绝对路径(不存在时会自动创建) | |
| connectionId | No | 目标连接标识符,缺省时使用当前默认连接 | |
| useGitignore | No | 是否自动读取待同步目录下的 .gitignore 文件规则并合并至排除清单,默认 true | |
| excludePatterns | No | 通配排除规则列表(例如 ['**/node_modules/**', '**/.git/**']),匹配的文件与目录将被忽略不传输 |