title: How to use Dart HTML's DirectoryEntry and DirectoryReader classes?
body: <p>I need an example for using the DirectoryEntry and DirectoryReader classes in Dart:HTML. The following code read an image file from img directory and load it as an image element in the browser. </p>
  
  <pre class="lang-dart prettyprint-override"><code>import 'dart:html';
  
  void main() {
    ImageElement image = new ImageElement(src: 'img/car.jpg');
    querySelector('body').append(image);
  }
  </code></pre>
  
  <p>Here is the structure of my webapp directory:</p>
  
  <p><img src="https://i.stack.imgur.com/ZiYpo.png" alt="webapp directory&#39;s structure"></p>
  
  <p>I need to dynamically list and use the content of img directory.</p>