Property folders.ThisAppDataLocal
Overload
Gets or sets path of folder "local (non-roaming) private files of this application of this user account".
public static FolderPath ThisAppDataLocal { get; set; }
Exceptions
InvalidOperationException
Thrown by the |
Property Value
Remarks
Default path depends on script role (script.role and portable mode (ScriptEditor.IsPortable):
-
miniProgram and exeProgram -
folders.LocalAppData + @"LibreAutomate\_script"
. Orfolders.LocalAppData + "Au"
, if exists (for backward compatibility). -
editorExtension -
folders.LocalAppData + "LibreAutomate"
. Cannot be changed. - Portable miniProgram and exeProgram -
folders.ThisApp + @"data\appLocal\_script"
. Note: exeProgram launched not from editor isn't portable. - Portable editorExtension -
folders.ThisApp + @"data\appLocal"
. Cannot be changed.
The set
function does not change system settings. It just remembers a string that will be later returned by the get
function in this process.
Creates the folder if does not exist when set
or get
function called first time in this process, unless folders.noAutoCreatetrue
.