diff --git a/types/ssh2-sftp-client/index.d.ts b/types/ssh2-sftp-client/index.d.ts index 1a3469d71d..d32365ce35 100644 --- a/types/ssh2-sftp-client/index.d.ts +++ b/types/ssh2-sftp-client/index.d.ts @@ -7,6 +7,7 @@ // Orblazer // Taylor Herron // Lane Goldberg +// Lorenzo Adinolfi // 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; - list(remoteFilePath: string): Promise; + list(remoteFilePath: string, pattern?: string|RegExp): Promise; exists(remotePath: string): Promise;