I needed a quick way to publish files to SFTP and this saved the day. Thank you Lupo73!
I wanted to keep the file date as the original but that does not happen, all date-time values changes to upload date and time. I guess there is a limitation in psftp functions. using a normal sftp client (like FlashFXP) preserves the original file date and times. If there is a way to come around this I'm interested.