Skip to content

fs::list_dir should only return the contents of the directory #1919

@jsternberg

Description

@jsternberg

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;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions