Skip to content

IServerFolderCheck

Interface in Oadm.Sdk.Plugins · Oadm.Sdk.dll

Whether a folder on the server’s computer may hold data a plugin writes there (SDK 0.17.0, ICorePluginContext.FolderCheck): the folder an administrator chose with the client’s server folder picker, e.g. the plate log of License Plate Center. The same checks as the picker’s (docs/spec/security.md “Folders a plugin writes to”): a full path that exists, no system or program folder, not OADM’s own folders, writable by the server and, as the installed service, changeable only by administrators / root. A plugin checks again when it saves the setting and refuses a folder with the returned text as the field’s error.

public interface IServerFolderCheck
Task<string?> CheckAsync(string path, CancellationToken ct)

Null when the folder may be used, else why not (one of ServerFolderTexts).

Parameters

  • path: A full path on the server.
  • ct: Cancels the check.