rt-io/Directory/listSync.html">listSync</a> methods to get the files and directories
contained by a directory.
Set <code>recursive</code> to true to recursively list all subdirectories.
Set <code>followLinks</code> to true to follow symbolic links.
The list method returns a <a href="dart-async/Stream-class.html">Stream</a> that provides FileSystemEntity
objects. Use the listen callback function to process each object
as it become available.</p>
<pre class="language-dart"><code>import 'dart:io';

void main()