From d715cd11297d43d6f06a02354f30d94c99737d1e Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 20 Jan 2025 23:30:54 +0800 Subject: [PATCH] chore: --- packages/plugins/plugin-lib/src/ssh/ssh.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/plugin-lib/src/ssh/ssh.ts b/packages/plugins/plugin-lib/src/ssh/ssh.ts index 8d534e81..57be88ba 100644 --- a/packages/plugins/plugin-lib/src/ssh/ssh.ts +++ b/packages/plugins/plugin-lib/src/ssh/ssh.ts @@ -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,