Hi. I'm having a issue where I'm trying to list some zip files inside a directory in my project using dir_tree() and they're not showing up. I thought I was messing up with glob or regexp, but it doesn't seem to be the case, since dir_ls() works fine. Example below:
You can see that both a.zip and b.zip are listed using dir_ls(), but this is not the case when using dir_tree(). I'd hope that the output of the first dir_tree() attempt would look like the second one, but that's not the case. I tried many different patterns ("nested_dir/a.zip", "*/*.zip", ...), but none seemed to work.
Not sure if this is intended behaviour or not, but I'd imagine that both dir_tree() and dir_ls() would output the same file list. Cheers!
Hi. I'm having a issue where I'm trying to list some zip files inside a directory in my project using
dir_tree()
and they're not showing up. I thought I was messing up withglob
orregexp
, but it doesn't seem to be the case, sincedir_ls()
works fine. Example below:You can see that both
a.zip
andb.zip
are listed usingdir_ls()
, but this is not the case when usingdir_tree()
. I'd hope that the output of the firstdir_tree()
attempt would look like the second one, but that's not the case. I tried many different patterns ("nested_dir/a.zip"
,"*/*.zip"
, ...), but none seemed to work.Not sure if this is intended behaviour or not, but I'd imagine that both
dir_tree()
anddir_ls()
would output the same file list. Cheers!