
  -spec list_dir_all(Dir) -> {ok, Filenames} | {error, Reason}
                        when
                            Dir :: name_all(),
                            Filenames :: [filename_all()],
                            Reason :: posix() | badarg.

Since:
  OTP R16B

  Lists all the files in a directory, including files with raw
  filenames. Returns {ok, Filenames} if successful, otherwise 
  {error, Reason}. Filenames is a list of the names of all the
  files in the directory. The names are not sorted.

  Typical error reasons:

  eacces:
    Missing search or write permissions for Dir or one of its
    parent directories.

  enoent:
    The directory does not exist.
