Created
March 8, 2010 01:03
-
-
Save EvanBurchard/324761 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For some reason, neither of the following get the behavior I expected: | |
FileUtils.cp_r 'src/*', 'dest' | |
`cp -r src/* dest` | |
I need a period, not an asterisk. | |
From the docs: | |
FileUtils.cp_r 'src/.', 'dest' | |
# cp_r('src', 'dest') makes src/dest, but this doesn't. | |
`cp -r src/. dest` also works. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment