3using System.Threading.Tasks;
17 private readonly
string sortKey;
26 this.folderNode = FolderNode;
30 [Page(7,
"File System", 100)]
31 [Header(42,
"Folder Name:")]
32 [ToolTip(43,
"Local folder name.")]
34 public string FolderLocalName {
get;
set; }
92 string FullPath = Path.Combine(this.folderNode.FolderName,
this.FolderLocalName);
93 if (!FullPath.StartsWith(
this.folderNode.FolderName, StringComparison.CurrentCultureIgnoreCase))
94 throw new Exception(
"Invalid local folder name.");
96 Directory.CreateDirectory(FullPath);
98 return Task.CompletedTask;
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Creates a subfolder in a folder.
Task StartQueryExecutionAsync(Query Query, Language Language)
Starts the execution of a query.
Task< string > GetConfirmationStringAsync(Language Language)
Gets a confirmation string, if any, of the command. If no confirmation is necessary,...
Task< string > GetNameAsync(Language Language)
Gets the name of data source.
Task< bool > CanExecuteAsync(RequestOrigin Caller)
If the command can be executed by the caller.
CommandType Type
Type of command.
string CommandID
ID of command.
Task ExecuteCommandAsync()
Executes the command.
Task< string > GetFailureStringAsync(Language Language)
Gets a failure string, if any, of the command. If no specific failure string is available,...
ICommand Copy()
Creates a copy of the command object.
string SortKey
Sort Key, if available.
string SortCategory
Sort Category, if available.
CreateFolderCommand(ProgramDataFolder FolderNode, string SortKey)
Creates a subfolder in a folder.
Task< string > GetSuccessStringAsync(Language Language)
Gets a success string, if any, of the command. If no specific success string is available,...
Reference to a folder in the ProgramData folder of the broker.
Data source mirroring the ProgramData folder for the broker.
Service Module hosting the XMPP broker and its components.
Class handling the reception of data from a query.
Tokens available in request.