Permalink
Browse files

Use mkdir_p so that the output directory is always created.

  • Loading branch information...
1 parent 2928040 commit 6e8356147d6b7f33de42439dd5ca7f92b705367f @radar radar committed Feb 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/rails_guides/generator.rb
@@ -11,7 +11,7 @@ def initialize(output = nil)
unless ENV["ONLY"]
FileUtils.rm_r(@output) if File.directory?(@output)
- FileUtils.mkdir(@output)
+ FileUtils.mkdir_p(@output)
end
@view_path = File.join(@guides_dir, "source")

0 comments on commit 6e83561

Please sign in to comment.