Shouldn't be const String&, should be Path type. Also probably should use auto here.