resource_save_location


Description:


[ Version ( since = "4.2" ) ]
public string resource_save_location (ResourceType type, string relpath, bool create)

If relpath contains a trailing slash ('/') character, resource_save_location finds the directory to save files into for the given type in the user's home directory.

All directories needed (including those given by relpath) will be created on demand if create if true.

If relpath does not end with a slash ('/') character, it is taken to be the name of a file to return the save location for. All the directories needed will be created on demand if create is true.

Specifying null or the empty string for relpath allows you to discover the base path for saving files of the specified type, though normally you should not need this.

Parameters:

type

type of location to return.

relpath

relative path of the resource.

create

whether to create missing directory.

Returns:

the path where resources of the specified type should be saved or null on error. The returned string should be freed when no longer needed.


Namespace: Xfce