Skip to content

Instantly share code, notes, and snippets.

@EvanBurchard
Created March 8, 2010 01:03
Show Gist options
  • Save EvanBurchard/324761 to your computer and use it in GitHub Desktop.
Save EvanBurchard/324761 to your computer and use it in GitHub Desktop.
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