Question about handling filepaths
I have read over and tested the documentation when it comes to include/exclude globs/regexs. While I can achieve my goal utilizing these, is it possible to just directly modify the included filepaths/files to only include things that I want when it comes to a `directory`.
Structure:
```
folder_a
file.mkv
file.srt
file.log
subfolder_a
file.h264
```
Let's say I want to use torf to open `folder_a` and I know that I only want to include `folder_a/` `file.mkv` and `file.srt`. Could I directly modify `filepaths` and/or `files` to only include that in the final output? Utilizing the globs/regexs feel like it could be error prone in certain situations when i know specifically before hand what files I'd like to have (say selecting from a filetree or something such as that).
关闭于 2024-07-04 2 条评论