I am trying to do what the title says and collect the file paths into a vector but having trouble. I would use find rootfolder -name findthis.csv in bash. readdir can only read one level deep, so I am trying to find a solution with walkdir. I am not understanding the provided examples. Why is the same command run sequentially yielding different results?
It looks like I/O objects may be mutated without indicating such with !. Though again, I wouldn’t necessarily realize I was creating an I/O object just to read some directory names, so it still strikes me as odd that first continues iterating the object.