function _restclient_get_file_location in RESTClient 7.2
2 calls to _restclient_get_file_location()
- restclient_filemode_fetch_response in ./
restclient.filemode.inc - Function to fetch a response from a file.
- restclient_filemode_save_response in ./
restclient.filemode.inc - Function to save the response of the curl call to a file.
File
- ./
restclient.filemode.inc, line 116 - Defines the restclient testing feature.
Code
function _restclient_get_file_location() {
$path = variable_get('restclient_filepath', 'private://restclient_testing');
//Check if theres is private, public, or tmp in the file path.
if ($wrapper = file_stream_wrapper_get_instance_by_uri($path)) {
$realpath = $wrapper
->realpath();
}
return $realpath;
}