It provides a set of methods to handle the web service data directory. A data directory aims to provide a local storage point for specific files and directories handled by the web services. A data directory can be set manually in the virtual host configuration using the DataDir key under the [WEB_SERVICE] section or through the API exposed in this documentation.
It returns the data directory being used by the web service.
const char *get_path();Parameters None Return: Upon successful completion it returns the directory path, on error or if the path is not set returns NULL.
It compose the absolute path for a given file or directory name using as reference the web service data directory. This method can be used only inside a callback context. The resulting memory buffer is freed by the garbage collector once the callback finish it works.
char *locate(const char *filename);Parameters
It specify a new data directory for the web service. It must be a valid path. If it fails it will continue using the configuration directory set on the web server virtual host definition.
int set_path(const char *dir);Parameters