Providing pattern
to dir_ls() silently gives wrong result
#312
Labels
bug
an unexpected problem or unintended behavior
pattern
to dir_ls() silently gives wrong result
#312
Created on 2021-01-29 by the reprex package (v1.0.0.9000)
It's very easy for people to provide their filtering regex to
dir_ls()
viapattern
à lalist.files()
, when what they really mean isregexp
. And thenpattern
gets silently swallowed by...
indir_ls()
andpath_filter()
, resulting in no filtering at all. The docs say that...
gets passed along togrep()
, but that doesn't happen in this case.Discovered while debugging a puzzling error in usethis (r-lib/usethis#1336).
The text was updated successfully, but these errors were encountered: