Skip to content
Snippets Groups Projects
Commit f18278a8 authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

recorder: create directory if it does not exist

GitLab: jami-client-qt#673
Change-Id: Id46170d4730056202e1ed4f535656293711e9241
parent 997583a2
Branches
No related tags found
No related merge requests found
......@@ -61,6 +61,8 @@ Recordable::toggleRecording()
auto dir = Manager::instance().audioPreference.getRecordPath();
if (dir.empty())
dir = fileutils::get_home_dir();
// Check if dir exists, create if if it does not
fileutils::check_dir(dir.c_str());
ss << dir;
if (dir.back() != DIR_SEPARATOR_CH)
ss << DIR_SEPARATOR_CH;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment