mscdex/ssh2

SFTPWrapper exists wrong parameter name?

Opened this issue · 0 comments

Hello,
i just want to use the exists method of the SFTPWrapper which has the following definition:
exists(path: string, callback: (hasError: boolean) => void): void;

and i noticed that hasError is true when the file exists and false when it does not? maybe the paramter should be named "exists" or something like that?

best regards