kmc/kmc — pull request #426 by Zsub (2014-08-20 22:23:19+00:00)
Title: Ensure there is something to copy the origin to

Assuming `from` is a file needing to be copied into a hierarchy, only `cp_r` will not create the necessary directory structure. By joining the destination path, taking that `dirname`, and `mkdir_p`'ing that, we can ensure the directory where `from` needs to go will always exist. At the same time, this avoids naively creating a directory `destination` which would break desired behavior of `cp_r` by copying one level too deep at the destination.