[Groonga-commit] droonga/droonga-engine at 224b6a7 [master] catalog-generate: ensure output directory existence

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jun 25 15:37:06 JST 2014


Kouhei Sutou	2014-06-25 15:37:06 +0900 (Wed, 25 Jun 2014)

  New Revision: 224b6a7dffb68add3c2732e88c9b5bb8de464438
  https://github.com/droonga/droonga-engine/commit/224b6a7dffb68add3c2732e88c9b5bb8de464438

  Message:
    catalog-generate: ensure output directory existence

  Modified files:
    bin/droonga-engine-catalog-generate

  Modified: bin/droonga-engine-catalog-generate (+1 -0)
===================================================================
--- bin/droonga-engine-catalog-generate    2014-06-25 15:33:50 +0900 (39ac79e)
+++ bin/droonga-engine-catalog-generate    2014-06-25 15:37:06 +0900 (3f256cf)
@@ -101,6 +101,7 @@ def open_output(path)
   else
     # Don't output the file directly to prevent loading of incomplete file!
     path = Pathname(path).expand_path
+    FileUtils.mkdir_p(path.dirname.to_s)
     Tempfile.open(path.basename.to_s, path.dirname.to_s, "w") do |output|
       yield(output)
       output.flush
-------------- next part --------------
HTML����������������������������...
下载 



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