Permalink
Browse files

Use "fileutils" instead of "ftools"

  • Loading branch information...
1 parent ab14c7e commit ce6d22ea08c33261e09e26cca52005b2ab5cb54d rmagick committed Dec 31, 2007
Showing with 3 additions and 3 deletions.
  1. +3 −3 post-clean.rb
View
@@ -2,11 +2,11 @@
# doc/*.rb.html
# doc/ex/* (!rb)
# Bug #246: Don't use chdir!
-require 'ftools'
+require 'fileutils'
targets = Dir['doc/*.rb.html']
-File.safe_unlink(*targets) unless targets.empty?
+FileUtils.safe_unlink(targets) unless targets.empty?
targets = Dir['doc/ex/*']
targets.delete_if { |entry| File.directory?(entry) || %r{\.rb\z}.match(entry) }
-File.safe_unlink(*targets) unless targets.empty?
+FileUtils.safe_unlink(targets) unless targets.empty?

0 comments on commit ce6d22e

Please sign in to comment.