In this expression, includes(<thing>) it search for one specific <thing> in each file (where file is the array, not the <thing>).
It’s impossible to guess what’s your case.
But your code have an error: it’s missing an “)” at the end of the second line ...!f.path.includes("foldernamehere"))
If a specific folder, use the filter in dv.pages(): dv.pages('-"myfoldername"')