
[;1m  list_dir(Dir)[0m

  Lists all files in a directory, except files with raw filenames.
  Returns [;;4m{ok, Filenames}[0m if successful, otherwise [;;4m{error,[0m
  [;;4mReason}[0m. [;;4mFilenames[0m is a list of the names of all the files in
  the directory. The names are not sorted.

  Typical error reasons:

   • [;;4meacces[0m - Missing search or write permissions for [;;4mDir[0m or
     one of its parent directories.

   • [;;4menoent[0m - The directory does not exist.

   • [;;4m{no_translation, Filename}[0m - [;;4mFilename[0m is a [;;4mbinary/0[0m
     with characters coded in ISO Latin-1 and the VM was started
     with parameter [;;4m+fnue[0m.
