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.
| type |
type of location to return. |
| relpath |
relative path of the resource. |
| create |
whether to create missing directory. |
|
the path where resources of the specified |