SFTP: fix return variable type