We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ac15dd commit 01a7a3fCopy full SHA for 01a7a3f
1 file changed
Source/Utils/OpenEphysHttpServer.h
@@ -218,6 +218,17 @@ class OpenEphysHttpServer : juce::Thread {
218
LOGD("'default_record_engine' not specified'");
219
}
220
221
+ try {
222
+ std::string start_new_directory = request_json["start_new_directory"];
223
+ LOGD("Found 'start_new_directory': ", start_new_directory);
224
+ const MessageManagerLock mml;
225
+ if (start_new_directory == "true")
226
+ CoreServices::createNewRecordingDirectory();
227
+ }
228
+ catch (json::exception& e) {
229
+ LOGD("'start_new_directory' not specified'");
230
231
+
232
json ret;
233
recording_info_to_json(graph_, &ret);
234
res.set_content(ret.dump(), "application/json");
0 commit comments