xdgCacheHome

The base directory relative to which user-specific non-essential files should be stored.

  1. string xdgCacheHome(string subfolder, bool shouldCreate)
    version(D_Ddoc)
    @trusted nothrow
    string
    xdgCacheHome
    (
    string subfolder = null
    ,
    bool shouldCreate = false
    )
  2. string xdgCacheHome(string subfolder, bool shouldCreate)

Parameters

subfolder string

Subfolder to append to determined path.

shouldCreate bool

If path does not exist, create directory using 700 permissions (i.e. allow access only for current user).

Return Value

Type: string

Path to user-specific cache directory or empty string on error.

Meta