which is called when
the value is ready.</p>
<pre class="language-dart"><code>import 'dart:io';

main() {
  final myDir = new Directory('dir');
  myDir.exists().then((isThere) {
    isThere ? print('exists') : print('non-existent');
  });
}
</code></pre>
<p>In addition to exists, the <a href="dart-io/FileSystemEntity/stat.html">stat</a>, <a href="dart-io/Directory/rename.html">rename</a>, and
other methods, return Futures.</p>
<h2 id="other-resources">Other resources</h2><ul><li>
<p><a href="https://www.dar