Modified: freeswitch/trunk/src/switch_core_file.c (14894 => 14895)
--- freeswitch/trunk/src/switch_core_file.c 2009-09-16 21:28:21 UTC (rev 14894)
+++ freeswitch/trunk/src/switch_core_file.c 2009-09-16 22:19:36 UTC (rev 14895)
@@ -148,15 +148,13 @@
switch_goto_status(status, end);
}
- if ((status = switch_file_exists(file_path, fh->memory_pool)) != SWITCH_STATUS_SUCCESS) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "File [%s] not created!\n", fh->spool_path);
+ if (!strstr(file_path, SWITCH_URL_SEPARATOR) && (status = switch_file_exists(file_path, fh->memory_pool)) != SWITCH_STATUS_SUCCESS) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "File [%s] not created!\n", file_path);
fh->file_interface->file_close(fh);
UNPROTECT_INTERFACE(fh->file_interface);
switch_goto_status(status, end);
}
-
-
if ((flags & SWITCH_FILE_FLAG_READ)) {
fh->native_rate = fh->samplerate;
} else {