Merge pull request #1214 in FS/freeswitch from ~MOCHOUINARD/freeswitch:bugfix/FS-10111-patch-mod_xml_cdr-make-folder-recursivery to master

* commit '0d177f21f69e3477c8ab548366a7c8522bd77b79':
  FS-10111: mod_xml_cdr Create folder recursivery to the specified destination
This commit is contained in:
Mike Jerris 2017-04-28 20:05:13 +00:00
commit a5358b3543
1 changed files with 2 additions and 2 deletions

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) {