app.paths resolves standard OS directories.
app.paths.home(); // user home directory
app.paths.appData(); // OS app data root (e.g. %APPDATA%, ~/Library/Application Support, ~/.local/share)
app.paths.config(); // OS config root
app.paths.cache(); // OS cache root
app.paths.temp(); // OS temp directory
app.paths.logs(); // OS logs root
app.paths.documents();
app.paths.downloads();
app.paths.desktop();
app.paths.pictures();
app.paths.music();
app.paths.videos();appData(), config(), cache(), and logs() accept an optional name to
append a subdirectory: app.paths.appData("MyApp").
app.paths.userData(); // {appData}/{identifier}/{channel}
app.paths.userCache(); // {cache}/{identifier}/{channel}
app.paths.userLogs(); // {logs}/{identifier}/{channel}identifiercomes from"identifier"inbuntopconfig.jsonfor compiled builds, falling back topackage.json's"name".channelcomes fromBUNTOP_CHANNEL(embedded as__BUNTOP_CHANNEL__by the build script), defaulting to"dev"when run viabun run.
These directories are created automatically the first time they're accessed
and are the recommended place to store user data, caches, and logs - they're
isolated per app and per channel (so dev/beta/release builds of the same
app don't collide).