Please do not post any internal, closed source snippets on this public issue tracker!
Purpose
Please describe the end goal you are trying to achieve that has led you to request this feature.
Std lib function to get all file paths in a directory.
We're starting to work with GitHub as a data source, and want to transform directories, not just files.
Suggested approaches
What have you tried, and how might this problem be solved?
//os.tree to use filepath.Walk and construct some Value.
Array of file path strings?
Dictionary representing the filesystem?
Map dirs to dicts and files to true?
Represent each entry as a tuple of os.FileInfo, with a dir property containing a set of children?
Binary relation with parent -> child?
Whatever structure it returns can be transformed to others, so it should be the structure that is easiest to understand. Probably a FS dict. However a list of file paths would be easier to map into file contents (//os.tree('dir') => .@item => {.: //os.file(.)}).
Please do not post any internal, closed source snippets on this public issue tracker!
Purpose
Std lib function to get all file paths in a directory.
We're starting to work with GitHub as a data source, and want to transform directories, not just files.
Suggested approaches
//os.tree
to usefilepath.Walk
and construct someValue
.true
?os.FileInfo
, with adir
property containing a set of children?Whatever structure it returns can be transformed to others, so it should be the structure that is easiest to understand. Probably a FS dict. However a list of file paths would be easier to map into file contents (
//os.tree('dir') => .@item => {.: //os.file(.)}
).