Closed ryanjm closed 9 years ago
Playing with this pull request and thinking about what's going on here, I think the other PR is more correct. The change in this PR causes an error when you have files in your assets directory. I think we should remove files and directories before we copy so we can make sure we get the latest version in the build folder.
Let me know if there's something I'm missing here. Thanks again for the PR.
This is similar to #206, but I think this properly fixes the core issue.
If you have a folder inside of your
documentation_assets
path it will copy the folder itself into the new folder. According to the documentation thecp_r
method will:I don't believe this is the intention of this method. Again, from the documentation:
That is what I've changed this method to do.