How to clear cache or access files in "<user>\AppData\Local\<node-webkit app name>\Cache"

21 views
Skip to first unread message

Erik Zimmerman

unread,
May 27, 2013, 11:26:27 AM5/27/13
to node-...@googlegroups.com
Is it possible to access the files in "<user>\AppData\Local\<node-webkit app name>\Cache" using fs or to clear the local cache of node-webkit programmatically?

Erik Zimmerman

unread,
May 27, 2013, 11:51:54 AM5/27/13
to node-...@googlegroups.com
I found the solution:

process.env.LOCALAPPDATA
 or for 'roaming' data:
process.env.APPDATA

Erik Zimmerman

unread,
May 27, 2013, 11:53:25 AM5/27/13
to node-...@googlegroups.com
However, I am having trouble deleting the files while the program is running because it locks the files.

sanu...@gmail.com

unread,
Jun 23, 2013, 2:54:38 AM6/23/13
to node-...@googlegroups.com

Jeff K

unread,
Jul 10, 2013, 9:39:23 AM7/10/13
to node-...@googlegroups.com, sanu...@gmail.com
How do you use this? I don't see App as a defined variable

Roger

unread,
Jul 10, 2013, 10:30:32 AM7/10/13
to Jeff K, node-...@googlegroups.com, sanu...@gmail.com
Jeff K <jkr...@gmail.com> writes:

> How do you use this? I don't see App as a defined variable

See https://github.com/rogerwang/node-webkit/wiki/App

--
Roger

Jeff K

unread,
Jul 10, 2013, 11:06:35 PM7/10/13
to node-...@googlegroups.com, Jeff K, sanu...@gmail.com
Awesome. Thanks for the quick reply. Love the project!
Reply all
Reply to author
Forward
0 new messages