Skip to content

ServerFolderTexts

Static class in Oadm.Sdk.Plugins · Oadm.Sdk.dll

The texts and limits of the server folders (the checks of IServerFolderCheck, the client’s folder picker and its gRPC calls), one phrase per concept for server and client.

public static class ServerFolderTexts
static string? CheckName(string? name)

Null when name (trimmed at the start) is a folder name every system the server runs on accepts, else why not. The same rule on Windows, Linux and macOS, so a name never depends on where the server runs.

const string CannotCreate = "The server cannot create a folder here."

The service may not create a folder in the parent.

const string CannotOpen = "The server cannot open this folder."

The service may not list the folder.

const string CannotWrite = "The server cannot write to this folder."

The service cannot create a file in the folder.

const string ChooseFolder = "Choose a folder."

No folder chosen (an empty field, the list of drives).

const int MaxEntries = 2000

Most folders in one answer of a listing; more are cut off (sorted by name).

const int MaxNameLength = 255

Longest name of a new folder.

const int MaxPathLength = 1024

Longest path the server accepts.

const string NameDots = "Do not start the name with a dot or end it with a dot or a space."

The name starts with a dot (hidden on Linux and macOS) or ends with a dot or a space (not on Windows).

const string NameEmpty = "Enter a name."

The name of a new folder is empty.

const string NameExists = "A folder with this name exists already."

The folder exists already.

const string NameInvalid = "Use a name without \\ / : * ? \" < > |."

The name holds a character no system allows.

const string NameReserved = "This name is reserved. Choose another name."

A name Windows keeps for devices (CON, NUL, COM1, …).

const string NameTooLong = "Use at most 255 characters."

The name is longer than ServerFolderTexts.MaxNameLength.

const string NotFound = "This folder does not exist on the server."

The folder is not there.

const string NotFullPath = "Enter a full path on the server."

A relative path, “..”, a device path or a path the server’s system cannot have.

const string OadmFolder = "OADM keeps its own files here. Choose another folder."

OADM’s data folder itself, its plugins or its program folder.

const string OthersCanChange = "Users other than administrators can change this folder. Make one with New folder."

The installed service: users other than administrators / root could change what is in the folder.

const string SystemFolder = "This is a system folder. Choose another folder."

The operating system’s or a program’s folder.

const string WholeDrive = "Choose a folder, not a whole drive."

A drive or the top folder (C:, /).