Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 13 lines (12 sloc) 0.385 kb
0e64812 @bobmcwhirter Initial import
bobmcwhirter authored
1 require 'fileutils'
2 puts 'Setting up'
3 FileUtils.rm_rf( 'target' )
4 FileUtils.mkdir_p( 'target/dirA/' )
5 FileUtils.mkdir_p( 'target/dirB/' )
6 open( 'target/dirA/thefile', 'w' ) {|f|
7 f.puts 'Contents of the file'
8 }
9 puts 'Copying'
361ff22 @bobmcwhirter Show that filename does not matter.
bobmcwhirter authored
10 FileUtils.cp( 'target/dirA/thefile', 'target/dirB/the_other_file' )
0e64812 @bobmcwhirter Initial import
bobmcwhirter authored
11 puts 'Copying harder'
361ff22 @bobmcwhirter Show that filename does not matter.
bobmcwhirter authored
12 FileUtils.cp( 'target/dirA/thefile', 'target/dirB/the_other_file' )
Something went wrong with that request. Please try again.