It is difficult to tell from your code whether this is an issue or not, but there is a difference between
mget (
Multiple GET) and
rget (
Recursively GET). The former retrieves files in a directory matching a pattern, the latter retrieves all files in a folder
and it's sub folders.