v8.0.0
版本发布时间: 2022-04-05 13:10:51
theophilusx/ssh2-sftp-client最新发布版本:v11.0.0(2024-08-07 10:09:55)
This release changes the API for the uploadDir() and downloadDir() methods. This is a breaking change. Previously, these methods accepted an optional 3rd argument, a regular expression used to filter which files and directories would be included in the transfer. This argument has now been changed to be an optional predicate filter function. The function will be called for each file or directory in the tree specified as the 1st argument and should return true if the target should be included in the transfer, false to exclude it. See README for full details.
The rmdir() method has been refactored to better exploit asynchronous processing of directory tree removal. For broad shallow directory trees, significant performance improvements have been observed. The rmdir() API has not changed.
Bumped the ssh2 dependency to v1.9.0