提交 1aba2642 authored 作者: Marc Olivier Chouinard's avatar Marc Olivier Chouinard 提交者: Mike Jerris

FS-10111: mod_xml_cdr Create folder recursivery to the specified destination

上级 be1d5509
...@@ -108,7 +108,7 @@ static switch_status_t set_xml_cdr_log_dirs() ...@@ -108,7 +108,7 @@ static switch_status_t set_xml_cdr_log_dirs()
dir_status = SWITCH_STATUS_SUCCESS; dir_status = SWITCH_STATUS_SUCCESS;
if (switch_directory_exists(path, globals.pool) != SWITCH_STATUS_SUCCESS) { if (switch_directory_exists(path, globals.pool) != SWITCH_STATUS_SUCCESS) {
dir_status = switch_dir_make(path, SWITCH_FPROT_OS_DEFAULT, globals.pool); dir_status = switch_dir_make_recursive(path, SWITCH_DEFAULT_DIR_PERMS, globals.pool);
} }
if (dir_status == SWITCH_STATUS_SUCCESS) { if (dir_status == SWITCH_STATUS_SUCCESS) {
...@@ -147,7 +147,7 @@ static switch_status_t set_xml_cdr_log_dirs() ...@@ -147,7 +147,7 @@ static switch_status_t set_xml_cdr_log_dirs()
dir_status = SWITCH_STATUS_SUCCESS; dir_status = SWITCH_STATUS_SUCCESS;
if (switch_directory_exists(path, globals.pool) != SWITCH_STATUS_SUCCESS) { if (switch_directory_exists(path, globals.pool) != SWITCH_STATUS_SUCCESS) {
dir_status = switch_dir_make(path, SWITCH_FPROT_OS_DEFAULT, globals.pool); dir_status = switch_dir_make_recursive(path, SWITCH_DEFAULT_DIR_PERMS, globals.pool);
} }
if (dir_status == SWITCH_STATUS_SUCCESS) { if (dir_status == SWITCH_STATUS_SUCCESS) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论