byteskeptical / sftpretty

Provides multi-threaded routines and high level protocol abstractions for a pretty quick & simple file transfer experience. Super duper close to a drop in replacement for pysftp.
https://docs.sftpretty.com/
BSD 3-Clause "New" or "Revised" License
34 stars 8 forks source link

Update localtree and remotetree functionality #29

Closed coreyhartley closed 1 year ago

coreyhartley commented 1 year ago

In order to resolve this bug, localtree and remotetree functionality were changed. This should siplify the logic, as well as remove the additional directiories added to the paths returned.

The first primary chnage in these functions was to add a "base" directory variable, instead of the "containers" variable, so that the relative path could be removed when joining new folder paths. The second was returning a list of tuples rather than returning a dictionary of tuples through the parameter. From what I could see, it should simplify the logic as there was an additional for loop in the put functions to traverse the keys.

byteskeptical commented 1 year ago

While I appreciate the effort. The necessary changes are already in #26.