IServerFolders
Interface in Oadm.Sdk.Client · Oadm.Sdk.Client.dll
The folders of the server’s computer for a plugin setting such as “Folder on the server” (SDK 0.17.0, ICorePluginClientContext.ServerFolders): the client may run on another computer, so a folder of the server is never chosen with the local folder dialog. Administrators only (the server refuses everyone else with PERMISSION_DENIED); names and paths only, never files. Errors arrive as Grpc.Core.RpcException with the text to show (ServerErrors.Message). The shared control is ServerFolderPicker with its dialog ServerFolderWindow.
public interface IServerFoldersMethods
Section titled “Methods”CheckAsync
Section titled “CheckAsync”Task<string?> CheckAsync(string path, CancellationToken ct)Null when a plugin may keep its data in path, else why not (one of ServerFolderTexts): the server part checks the same with ICorePluginContext.FolderCheck.
CreateAsync
Section titled “CreateAsync”Task<ServerFolder> CreateAsync(string parentPath, string name, CancellationToken ct)Makes the folder name in parentPath (audited; as the installed service only administrators / root can change it) and returns it. Check the name first with ServerFolderTexts.CheckName.
ListAsync
Section titled “ListAsync”Task<ServerFolderListing> ListAsync(string? path, CancellationToken ct)The subfolders of path; null or empty: the drives / top folders.