SFTP: make it so files can be downloaded into resources or upload from resources

Fixes #428
Sometimes missing the break is intentional too lol.

idk stuff like this I'd leave up to the discretion of the person submitting the PR. If someone else were to submit this PR with if / else if instead of switch, I'd probably let it in. I just prefer switch in this case myself.

Like if someone names their variable `$temp`or `$whatever` I'm not likely to say anything.