e the
named directory and all its necessary parent directories,
if they do not already exist.</p>
<pre class="language-dart"><code>import 'dart:io';

void main() {
  // Creates dir/ and dir/subdir/.
  new Directory('dir/subdir').create(recursive: true)
    // The created directory is returned as a Future.
    .then((Directory directory) {
      print(directory.path);
  });
}
</code></pre>
<h2 id="list-a-directory">List a directory</h2>
<p>Use the <a href="dart-io/Directory/list.html">list</a> or <a href="da