title: How to specify a scratch output directory in Nextflow?
body: <p>I have started to read Nexflow's documentation and <a href="https://www.nextflow.io/docs/latest/process.html?highlight=stageout#scratch" rel="nofollow noreferrer">found that</a> one can specify a <code>scratch</code> directory for the execution. Once the task is complete, <a href="https://www.nextflow.io/docs/latest/process.html?highlight=stageout#stageoutmode" rel="nofollow noreferrer">one can use</a> the <code>stageOutMode</code> directive to copy the output files from <code>scratch</code> to <code>storeDir</code>.</p>
  <p>The output files to be copied are specified by the <code>output</code> directive. My question is the following: is it possible to specify entire directories as output so that they would be copied recursively from <code>scratch</code> to <code>storeDir</code>? If so, how?</p>