MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / resolve_workflow_path

Function resolve_workflow_path

app/workflow/workflow.cpp:148–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 if (std::isalnum(uch) == 0 && ch != '-' && ch != '_') {
147 ch = '_';
148 }
149 }
150 return value;
151}
152
153std::filesystem::path resolve_workflow_path(const std::string & value, const WorkflowContext & context) {
154 std::filesystem::path path(expand_value(value, context));
155 if (path.is_absolute()) {
156 return path;
157 }
158 if (value.find("${out_dir}") != std::string::npos ||
159 value.find("${workflow_dir}") != std::string::npos ||
160 value.find("${") != std::string::npos) {
161 throw std::runtime_error(
162 "workflow path inputs expanded from placeholders must be absolute: " + value +
163 " -> " + path.string());
164 }

Callers 8

run_batch_inputs_stepFunction · 0.85
run_convert_audio_stepFunction · 0.85
run_model_step_implFunction · 0.85
run_chunked_model_stepFunction · 0.85
run_mix_audio_stepFunction · 0.85
run_model_step_foreachFunction · 0.85
run_json_workflowFunction · 0.85

Calls 2

expand_valueFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected