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