Ruby net/sftp problem

If you're ever using net/sftp, make sure you have given absolute paths for both the target and source directories (including the target's file name -- i.e. don't just pass in the path to the folder you want to sftp to).

If you don't, you'll get something like the very nondescript message below:

Net::SFTP::StatusException open /home/hedgehog (4, "failure")