import { type XDGAppPaths } from "https://deno.land/x/xdg_app_paths@v8.3.0/src/mod.deno.ts";
XDGAppPaths
(API) - Determine (XDG-compatible) paths for storing application files (cache, config, data, etc)
Call Signatures
Create an XDGAppPaths
object (a preceding new
is optional).
Methods
Create an XDGAppPaths
object (new
is optional).
Returns the directory for non-essential data files. > Deletion of the data contained here might cause an application to slow down.
Returns the directory for config files. > Deletion of the data contained here might require the user to reconfigure an application.
Returns the directory for data files. > Deletion of the data contained here might force the user to restore from backups.
Returns the directory for runtime files; may return undefined
.
> Deletion of the data contained here might interfere with a currently executing application but should have no effect on future executions.
Returns the directory for state files. > Deletion of the data contained here should not materially interfere with execution of an application.
Returns a priority-sorted list of possible directories for configuration file storage (includes paths.config()
as the first entry).
Returns a priority-sorted list of possible directories for data file storage (includes paths.data()
as the first entry).
Application name used for path construction (from supplied configuration or auto-generated).