use the directory listing function provided by ws

  This fixes #10.