CopyToRemote should be able to create parent dirs as needed. it currently errors if the destination dir path doesn't exist