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
I expect that absolute ignore paths will work against non-absolute globs. Instead, it seems like I need an absolute glob for an absolute ignore path to work.
I think I can work around this for now by making both globs and ignore paths relative to what I pass in as cwd.
The text was updated successfully, but these errors were encountered:
Right now this is the expected behavior because we are using user input as the primary path.
In the first case, you say that you want to take the file from the directory. The cwd parameter points to a directory, but does not participate in the path formation for the found occurrences.
The glob package has the same behavior. However, it works in glob correctly when you use the absolute option.
Environment
Node 8.
fast-glob v2.2.2
Actual behavior
I have
format.js
in the same directory as this script.Expected behavior
I expect that absolute
ignore
paths will work against non-absolute globs. Instead, it seems like I need an absolute glob for an absoluteignore
path to work.I think I can work around this for now by making both globs and
ignore
paths relative to what I pass in ascwd
.The text was updated successfully, but these errors were encountered: