setPath
Overrides the path
to a special directory or file associated with name
. If the path specifies a directory that does not exist, an Error
is thrown. In that case, the directory should be created with fs.mkdirSync
or similar.
You can only override paths of a name
defined in app.getPath
.
By default, web pages' cookies and caches will be stored under the sessionData
directory. If you want to change this location, you have to override the sessionData
path before the ready
event of the app
module is emitted.