lib/ruby_ext/file.rb in ruby-ext-0.2.11 vs lib/ruby_ext/file.rb in ruby-ext-0.2.12
- old
+ new
@@ -17,10 +17,10 @@
# end
def create_directory dir
- Dir.mkdir_p dir unless File.exist? dir
+ FileUtils.mkdir_p dir unless File.exist? dir
end
def delete_directory dir
FileUtils.rm_r dir, :force => true if File.exist? dir
end
\ No newline at end of file