I would pass those paths by reference or a value (that can be i.e. moved) but not a const value.