Skip to content

Commit

Permalink
directory permissions fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sur committed Apr 23, 2007
1 parent 2afa272 commit 68eb4c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/simple_captcha_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ module ConfigTasks #:nodoc
include Config

def create_captcha_directories #:nodoc
Dir.mkdir(IMAGE_PATH, 777) unless File.exist?(IMAGE_PATH)
Dir.mkdir(DATA_PATH, 777) unless File.exist?(DATA_PATH)
Dir.mkdir(CAPTCHA_DATA_PATH, 777) unless File.exist?(CAPTCHA_DATA_PATH)
Dir.mkdir(CAPTCHA_IMAGE_PATH, 777) unless File.exist?(CAPTCHA_IMAGE_PATH)
Dir.mkdir(IMAGE_PATH, 0777) unless File.exist?(IMAGE_PATH)
Dir.mkdir(DATA_PATH, 0777) unless File.exist?(DATA_PATH)
Dir.mkdir(CAPTCHA_DATA_PATH, 0777) unless File.exist?(CAPTCHA_DATA_PATH)
Dir.mkdir(CAPTCHA_IMAGE_PATH, 0777) unless File.exist?(CAPTCHA_IMAGE_PATH)
end

def create_code #:nodoc
Expand Down

0 comments on commit 68eb4c6

Please sign in to comment.