using System.ComponentModel; using System.Runtime.Versioning; namespace ElectronNET.API.Entities { /// /// Names for app.getPath(name). Aligned with Electron docs. /// /// Up-to-date with Electron API 39.2 public enum PathName { /// /// User's home directory. /// Home, /// /// Per-user application data directory. /// AppData, /// /// The directory for storing your app's configuration files, which by default is the appData directory appended with your app's name. /// UserData, /// /// The directory for storing data generated by Session, such as localStorage, cookies, disk cache, downloaded dictionaries, network state, devtools files. /// By default this points to userData. /// SessionData, /// /// Temporary directory. /// Temp, /// /// The current executable file. /// Exe, /// /// The location of the Chromium module. By default this is synonymous with exe. /// Module, /// /// The current user's Desktop directory. /// Desktop, /// /// Directory for a user's "My Documents". /// Documents, /// /// Directory for a user's downloads. /// Downloads, /// /// Directory for a user's music. /// Music, /// /// Directory for a user's pictures. /// Pictures, /// /// Directory for a user's videos. /// Videos, /// /// Directory for the user's recent files. Windows only. /// [SupportedOSPlatform("windows")] Recent, /// /// Directory for your app's log folder. /// Logs, /// /// Directory where crash dumps are stored. /// CrashDumps, /// /// The directory where app assets such as resources.pak are stored. /// Available on Windows and Linux only. /// [SupportedOSPlatform("windows")] [SupportedOSPlatform("linux")] Assets } }