[ssh2-sftp-client] add the second param for list method (#40609)

This commit is contained in:
Lorenzo
2019-12-03 03:29:53 +00:00
committed by Ron Buckton
parent eefd469022
commit dcd8b22cf8

View File

@@ -7,6 +7,7 @@
// Orblazer <https://github.com/orblazer>
// Taylor Herron <https://github.com/gbhmt>
// Lane Goldberg <https://github.com/builtbylane>
// Lorenzo Adinolfi <https://github.com/loru88>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as ssh2 from 'ssh2';
@@ -17,7 +18,7 @@ export = sftp;
declare class sftp {
connect(options: ssh2.ConnectConfig): Promise<ssh2.SFTPWrapper>;
list(remoteFilePath: string): Promise<sftp.FileInfo[]>;
list(remoteFilePath: string, pattern?: string|RegExp): Promise<sftp.FileInfo[]>;
exists(remotePath: string): Promise<false | "d" | "-" | "l">;