Changed directory search back to class from namespace.  This was to encapsulate a vector<std::string> needed to hold the file paths.  Originally the vector was in the function, but the function is recursive and re-initialized the vector every run.  Removing the vector to a member variable solved this.