Skip to content

ElectronApp.getPath method

ElectronApp › getPath

Unofficial

Returns a path to a special directory or file associated with name.

Signature:

getPath(name: "appData" | "cache" | "crashDumps" | "desktop" | "documents" | "downloads" | "exe" | "home" | "logs" | "module" | "music" | "pictures" | "recent" | "temp" | "userData" | "videos"): string

Parameters:

Parameter Type Description
name "appData" | "cache" | "crashDumps" | "desktop" | "documents" | "downloads" | "exe" | "home" | "logs" | "module" | "music" | "pictures" | "recent" | "temp" | "userData" | "videos" The name of the special path to retrieve.

Returns: stringThe full path.