mozilla/rust — Issue #1919: fs::list_dir should only return the contents of the directory
Author: jsternberg
Created: 2012-03-02 03:31:14+00:00
State: open

Currently using fs::list_dir will append the directory name to the front of every entry. I think fs::list_dir should only return the contents of the directory, and maybe another utility function should use fs::list_dir to give the current behavior.

The only other way I can see to access the contents of a directory is with os_fs::list_dir, but that seems like it's not supposed to be public. A comment in the source code has:

```
// FIXME: generic_os and os_fs shouldn't be exported
export generic_os, os, os_fs;
```