new AppDirs(appname, appauthor, version, roaming, multipath)
Build an AppDirs convenience object.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
appname |
string | Application name. | |
appauthor |
string |
<optional> |
Application author. Defaults to appname. |
version |
string |
<optional> |
Application version. |
roaming |
boolean |
<optional> |
If true, use directory for roaming profile. |
multipath |
boolean |
<optional> |
If true, return arrays for multipath functions (siteDataDir, siteConfigDir). |
Methods
-
siteConfigDir() → {string}
-
Site configuration directory.
Returns:
- Type
- string
-
siteDataDir() → {string}
-
Site data directory.
Returns:
- Type
- string
-
userCacheDir() → {string}
-
User cache directory.
Returns:
- Type
- string
-
userConfigDir() → {string}
-
User configuration directory.
Returns:
- Type
- string
-
userDataDir() → {string}
-
User data directory.
Returns:
- Type
- string
-
userLogDir() → {string}
-
User log directory.
Returns:
- Type
- string