Skip to main content

Home > git-documentdb > Validator > validateLocalDir

Validator.validateLocalDir() method#

Validate localDir

Signature:
validateLocalDir(localDir: string): void;

Parameters#

ParameterTypeDescription
localDirstring
Returns:

void

Remarks#

- A directory name allows Unicode characters except for OS reserved filenames and the following characters: \< \> : " | ? * \\0
- A colon is generally disallowed, but a drive letter followed by a colon is allowed.
- A directory name cannot end with a period or a white space but the current directory . and the parent directory .. are allowed.
- A trailing slash could be omitted.

Exceptions#

Err.InvalidLocalDirCharacterError