forked from Mirrors/freeswitch
add switch_file_rename
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6502 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ad3a8db6cf
commit
91862ed0d3
@ -720,6 +720,8 @@ SWITCH_DECLARE(switch_status_t) switch_file_close(switch_file_t * thefile);
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_file_remove(const char *path, switch_memory_pool_t *pool);
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_file_rename(const char *from_path, const char *to_path, switch_memory_pool_t *pool);
|
||||
|
||||
/**
|
||||
* Read data from the specified file.
|
||||
* @param thefile The file descriptor to read from.
|
||||
|
@ -328,6 +328,11 @@ SWITCH_DECLARE(switch_status_t) switch_file_close(switch_file_t * thefile)
|
||||
return apr_file_close(thefile);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_file_rename(const char *from_path, const char *to_path, switch_memory_pool_t *pool)
|
||||
{
|
||||
return apr_file_rename(from_path, to_path, pool);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_file_remove(const char *path, switch_memory_pool_t *pool)
|
||||
{
|
||||
return apr_file_remove(path, pool);
|
||||
|
Loading…
Reference in New Issue
Block a user