Add "cache" and "userCache" directories

This commit is contained in:
Cheng Zhao 2015-01-18 21:09:42 -08:00
parent 9a04f67c0a
commit ce52a87477
5 changed files with 14 additions and 2 deletions

View file

@ -107,6 +107,12 @@ You can request following paths by the names:
* `~/Library/Application Support` on OS X
* `userData`: The directory for storing your app's configuration files, by
default it is the `appData` directory appended with your app's name.
* `cache`: Per-user application cache directory, by default it is pointed to:
* `%APPDATA%` on Window, which doesn't has a universal place for cache
* `$XDG_CACHE_HOME` on Linux
* `~/Library/Caches` on OS X
* `userCache`: The directory for placing your app's caches, by default it is the
`cache` directory appended with your app's name.
## app.setPath(name, path)