From 0ff22feb7d33884bdeaac9ad7f6339f3fed4c056 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Tue, 5 Oct 2010 13:16:23 +0200 Subject: ftools is deprecated and fileutils should be used instead. --- lognotify.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lognotify.rb') diff --git a/lognotify.rb b/lognotify.rb index bebc9a3..6a1430b 100755 --- a/lognotify.rb +++ b/lognotify.rb @@ -33,7 +33,7 @@ # altered, an error will be produced and the script will exit. require 'digest/md5' -require 'ftools' +require 'fileutils' require 'open3' # Global settings. @@ -117,7 +117,7 @@ STDOUT.sync = true # Create cache directory, if nonexistent. path = File.expand_path(CACHE_DIR) -File.makedirs(path) unless File.directory?(path) +FileUtils.mkpath(path) unless File.directory?(path) # Treat each argument as a log identifier. ARGV.each do |identifier| -- cgit v1.2.3-70-g09d2