Not only that, it does call a resize of the string path by assuming a size, so that latter within lfn_generate_object_name()  it doesn’t have to allocate memory for every push_back(). Also, I discarded an extra stat call, which I think not necessary anymore with the new path