Property folders.ThisAppDataRoaming
Overload
Gets or sets path of folder "roaming private files of this application of this user account".
public static FolderPath ThisAppDataRoaming { 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.RoamingAppData + @"LibreAutomate\_script"
. Orfolders.RoamingAppData + "Au"
, if exists (for backward compatibility). -
editorExtension -
folders.RoamingAppData + "LibreAutomate"
. Cannot be changed. - Portable miniProgram and exeProgram -
folders.ThisApp + @"data\appRoaming\_script"
. Note: exeProgram launched not from editor isn't portable. - Portable editorExtension -
folders.ThisApp + @"data\appRoaming"
. 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
.