v2-dev
xiaojunnuo 2025-01-20 23:30:54 +08:00
parent 15d6eaf553
commit d715cd1129
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ export class AsyncSsh2Client {
});
}
async fastPut(options: { sftp: any; localPath: string; remotePath: string; opts?: { mode?: number } }) {
async fastPut(options: { sftp: any; localPath: string; remotePath: string; opts?: { mode?: string } }) {
const { sftp, localPath, remotePath, opts } = options;
return new Promise((resolve, reject) => {
this.logger.info(`开始上传:${localPath} => ${remotePath}`);
@ -255,7 +255,7 @@ export class SshClient {
}
* @param options
*/
async uploadFiles(options: { connectConf: SshAccess; transports: TransportItem[]; mkdirs: boolean; opts?: { mode?: number } }) {
async uploadFiles(options: { connectConf: SshAccess; transports: TransportItem[]; mkdirs: boolean; opts?: { mode?: string } }) {
const { connectConf, transports, mkdirs, opts } = options;
await this._call({
connectConf,