tag:support.arachni-scanner.com,2012-07-01:/discussions/questions/113-saving-to-output-directoryArachni: Discussion 2013-02-26T18:10:48Ztag:support.arachni-scanner.com,2012-07-01:Comment/250002252013-02-16T14:17:53Z2013-02-16T14:17:53ZSaving to output directory<div><p>That's a bit strange, could you paste the CLI params please?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/250002252013-02-16T16:53:56Z2013-02-16T16:53:57ZSaving to output directory<div><p>I'm using the load-profile option:</p>
<p>Here's the relevant section</p>
<p>reports:<br>
afr: outfile: output/ xml: outfile: output/</p>
<p>It defintely worked fine sometimes, trying to figure out if
there's a pattern to it going wrong.</p></div>Patricktag:support.arachni-scanner.com,2012-07-01:Comment/250002252013-02-16T17:01:06Z2013-02-16T17:01:06ZSaving to output directory<div><p>That should be</p>
<pre>
<code>reports:
afr:
outfile: output/
xml:
outfile: output/</code>
</pre></div>Patricktag:support.arachni-scanner.com,2012-07-01:Comment/250002252013-02-16T17:15:35Z2013-02-16T17:15:35ZSaving to output directory<div><p>Thanks, I'll try to reproduce it too.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/250002252013-02-22T18:29:34Z2013-02-22T18:29:34ZSaving to output directory<div><p>From what I can tell, this happens when the directory doesn't
exist, so the outfile string is treaded like a filename.<br>
However, due to the slash at the end, it is an invalid one and this
this error is thrown by <code>File.open</code> when it tries to
open it for writing.</p>
<p>You better use absolute paths when passing directories as
outfiles and also make sure that the dirs exist.</p></div>Tasos Laskos