![]() ![]() ![]() Likewise, the useFastget options can be set to true to use the fastGet() method for downloading files, otherwise the slower, but more reliable, get() method will be used. If false or missing, the slower, but better supported, put() method will be used. If useFastput is true, the fastPut() method will be used to upload files. The 3rd argument is now an options object with two supported properties, filter and useFastput (for uploadDir()) or useFastget (for downloadDir()). Previously, the argument was a filter function used to select which directories and files to be transferred. Breaking Change: The 3rd argument to uploadDir() and downloadDir() methods has been change. #Go sftp client example codeHowever, it should be noted that client code is 100% responsible for managing streams obtained using these methods. For those use-cases where you want to control streams at a low level, two new methods have been added, createReadStream() and createWriteStream(). #Go sftp client example plusThese options caused confusion for users and were too easy to get wrong, plus it made the methods overly complicated.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |