mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
add FileDelete function to spidermonkey takes 1 param, the path of the file to delete, using / as the path seperator, regardless of unix vs. windows. returns true is it was successfull, otherwise false
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3854 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -192,6 +192,16 @@ DoxyDefine(apr_status_t switch_file_open(switch_file_t **newf, const char *fname
|
||||
DoxyDefine(apr_status_t switch_file_close(switch_file_t *file);)
|
||||
#define switch_file_close apr_file_close
|
||||
|
||||
/**
|
||||
* Delete the specified file.
|
||||
* @param path The full path to the file (using / on all systems)
|
||||
* @param pool The pool to use.
|
||||
* @remark If the file is open, it won't be removed until all
|
||||
* instances are closed.
|
||||
*/
|
||||
DoxyDefine(apr_status_t apr_file_remove(const char *path, apr_pool_t *pool);)
|
||||
#define switch_file_remove apr_file_remove
|
||||
|
||||
/**
|
||||
* Read data from the specified file.
|
||||
* @param thefile The file descriptor to read from.
|
||||
|
||||
Reference in New Issue
Block a user