diff options
Diffstat (limited to 'cpp')
| -rwxr-xr-x | cpp/rubygen/amqpgen.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/rubygen/amqpgen.rb b/cpp/rubygen/amqpgen.rb index 044a2497e0..ceaf04090b 100755 --- a/cpp/rubygen/amqpgen.rb +++ b/cpp/rubygen/amqpgen.rb @@ -252,7 +252,7 @@ class Generator @prefix='' # For indentation or comments. @indentstr=' ' # One indent level. @outdent=2 - raise "Invalid output directory: #{outdir}" unless @outdir=="-" or File.directory?(@outdir) + Pathname.new(@outdir).mkpath unless @outdir=="-" or File.directory?(@outdir) end # Create a new file, set @out. |
