Changeset 3694

Show
Ignore:
Timestamp:
06/17/06 00:12:47 (2 years ago)
Author:
hdm
Message:

Fixed directory? call

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • torment/trunk/ruby/conf.rb

    r3687 r3694  
    2828 
    2929# Logger configuration 
    30 LOGGER_DIR = File.join(File.dirname(__FILE__), '..', 'data') 
     30LOGGER_DIR = File.join(File.dirname(__FILE__), '..', '..', 'data') 
    3131 
    3232# Enable logger by uncommenting this 
  • torment/trunk/ruby/logger.rb

    r3693 r3694  
    6161                log("LoggerCore initialized with log directory #{LOGGER_DIR}") 
    6262                 
    63                 if (! File.is_directory(LOGGER_DIR)) 
     63                if (! File.directory?(LOGGER_DIR)) 
    6464                        system("mkdir", "-p", LOGGER_DIR) 
    6565                end 
    6666                 
    67                 if (! File.is_directory(LOGGER_DIR)) 
     67                if (! File.directory?(LOGGER_DIR)) 
    6868                        log("Could not create the logger directory: #{$!.to_s}") 
    6969                        exit(0)