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

This commit is contained in:
Marc Olivier Chouinard authored and Mike Jerris committed 2017-06-01 16:04:30 -04:00
1 parent be1d5509b4
commit 1aba264264
1 file changed
+2 -2
+2 -2
View File
@@ -108,7 +108,7 @@ static switch_status_t set_xml_cdr_log_dirs()
dir_status = 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) {
@@ -147,7 +147,7 @@ static switch_status_t set_xml_cdr_log_dirs()
dir_status = 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) {