xample, <a href="dart-io/Directory/create.html">create</a> and <a href="dart-io/Directory/createSync.html">createSync</a>.
Unless you have a specific reason for using the synchronous version
of a method, prefer the asynchronous version to avoid blocking your program.</p>
<h2 id="create-a-directory">Create a directory</h2>
<p>The following code sample creates a directory using the <a href="dart-io/Directory/create.html">create</a> method.
By setting the <code>recursive</code> parameter to true, you can creat