[Groonga-commit] droonga/droonga-engine at 3e2c481 [master] Create the base directory before write check

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Sep 25 17:27:39 JST 2014


YUKI Hiroshi	2014-09-25 17:27:39 +0900 (Thu, 25 Sep 2014)

  New Revision: 3e2c4818c4397bcf5531f1a983e908883d948149
  https://github.com/droonga/droonga-engine/commit/3e2c4818c4397bcf5531f1a983e908883d948149

  Message:
    Create the base directory before write check

  Modified files:
    lib/droonga/service_installation.rb

  Modified: lib/droonga/service_installation.rb (+1 -0)
===================================================================
--- lib/droonga/service_installation.rb    2014-09-25 17:18:19 +0900 (8addc61)
+++ lib/droonga/service_installation.rb    2014-09-25 17:27:39 +0900 (9ac5abf)
@@ -56,6 +56,7 @@ module Droonga
     def have_write_permission?
       test_file = Path.base + "#{Time.now.to_i}.test"
       begin
+        FileUtils.mkdir_p(Path.base)
         FileUtils.touch(test_file.to_s)
       rescue Errno::EACCES => error
       end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index