Skip to content

Instantly share code, notes, and snippets.

@aereal
Created January 27, 2011 12:28
Show Gist options
  • Select an option

  • Save aereal/798444 to your computer and use it in GitHub Desktop.

Select an option

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

aereal commented Jan 27, 2011

Copy link
Copy Markdown
Author

$ 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