You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some common problems to solve to the new unix commands being developed in MatrixAI/Polykey-CLI#32. One main one being the ability to get a filetree based on a file path pattern using wildcards or globing.
A utility for walking a file tree based in a wildcard or glob pattern. So it needs to translate dir*/* or **/dir*/*.ext paths into a full file tree of directories and files that match that path.
The filesystem walker needs to support the following.
Can take either a normal path dir/file, wildcard, dir*/* or globed dir*/**/*.ext paths.
It will need to convert these paths into one or more paths by walking the file tree matching the supplied path.
For our uses, it needs to output every parent directory as well. So for a globed **/*.ext it needs to output every parent directory path in that tree as well. We can add a switch to toggle this.
It needs to work with both the node fs and efs interface.
Most of the commands we need to implement support some level of wildcard or globing. So this is essential to supporting that.
Specification
There are some common problems to solve to the new unix commands being developed in MatrixAI/Polykey-CLI#32. One main one being the ability to get a filetree based on a file path pattern using wildcards or globing.
dir*/*
or**/dir*/*.ext
paths into a full file tree of directories and files that match that path.The filesystem walker needs to support the following.
dir/file
, wildcard,dir*/*
or globeddir*/**/*.ext
paths.**/*.ext
it needs to output every parent directory path in that tree as well. We can add a switch to toggle this.Most of the commands we need to implement support some level of wildcard or globing. So this is essential to supporting that.
Additional context
Related MatrixAI/Polykey-CLI#32
Tasks
The text was updated successfully, but these errors were encountered: