The OpenD Programming Language

standardPaths

Get paths for various locations.

  1. string[] standardPaths(StandardPath type)
    nothrow @safe
    string[]
    standardPaths
  2. string[] standardPaths(StandardPath type, string subfolder)

Return Value

Type: string[]

Array of paths where files of type belong including one returned by writablePath, or an empty array if no paths are defined for type. This function does not ensure if all returned paths exist and appear to be accessible directories. Returned strings are not required to be unique. Note: This function does not cache its results. It may cause performance impact to call this function often since retrieving some paths can be relatively expensive operation.

Examples

string[] templateDirs = standardPaths(StandardPath.templates);
//List all available file templates including system defined and user created ones.

See Also

Meta