Skip to content

Instantly share code, notes, and snippets.

@aereal
Created January 27, 2011 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aereal/798444 to your computer and use it in GitHub Desktop.
Save aereal/798444 to your computer and use it in GitHub Desktop.
FileUtils::DryRun.copy_entry (in Ruby 1.9.2) makes changes.
#!/usr/bin/env ruby
require 'fileutils'
# ./src/README
# ./dst/
FileUtils::DryRun.copy_entry 'src/', 'dst/'
# ./src/README
# ./dst/README
@aereal
Copy link
Author

aereal commented Jan 27, 2011

$ ruby -v

ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment