summaryrefslogtreecommitdiff
path: root/lognotify.rb
diff options
context:
space:
mode:
authorThomas Wouters <thomas@tcpdump.be>2010-10-05 13:16:23 +0200
committerThomas Wouters <thomas@tcpdump.be>2010-10-05 13:16:23 +0200
commit0ff22feb7d33884bdeaac9ad7f6339f3fed4c056 (patch)
treed2f5f04af179eb4b665a14efb35fb0f7beeec44a /lognotify.rb
parent7ff0279ef1f00db46e6355064baef1a543494add (diff)
downloadlognotify-0ff22feb7d33884bdeaac9ad7f6339f3fed4c056.tar.gz
lognotify-0ff22feb7d33884bdeaac9ad7f6339f3fed4c056.tar.xz
ftools is deprecated and fileutils should be used instead.
Diffstat (limited to 'lognotify.rb')
-rwxr-xr-xlognotify.rb4
1 files changed, 2 insertions, 2 deletions
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|