diff options
| author | Thomas Wouters <thomas@tcpdump.be> | 2010-10-05 13:16:23 +0200 | 
|---|---|---|
| committer | Thomas Wouters <thomas@tcpdump.be> | 2010-10-05 13:16:23 +0200 | 
| commit | 0ff22feb7d33884bdeaac9ad7f6339f3fed4c056 (patch) | |
| tree | d2f5f04af179eb4b665a14efb35fb0f7beeec44a | |
| parent | 7ff0279ef1f00db46e6355064baef1a543494add (diff) | |
| download | lognotify-0ff22feb7d33884bdeaac9ad7f6339f3fed4c056.tar.gz lognotify-0ff22feb7d33884bdeaac9ad7f6339f3fed4c056.tar.xz | |
ftools is deprecated and fileutils should be used instead.
| -rwxr-xr-x | lognotify.rb | 4 | 
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| | 
