mkdir - Create a directory on an endpoint
The mkdir command creates a directory. Currently, the parent directory must exist (-p is not supported).
Automatic Endpoint Activation
If an endpoint is not activated, this command will attempt to auto-activate it. Otherwise, the command will fail, and direct the user to run endpoint-activate and/or display a web URL for OAuth activation.
This command supports the following endpoint identification formats:
"^test_bookmark". The bookmark name must be prepended with a
"^"character. The bookmark name may have URL-escaped characters. If the bookmark name contains a "/", it must be URL-escaped as "%2F".
"bob#test_endpoint". This contains the user who owns the endpoint and the endpoint legacy name.
Unqualified Legacy Name:
"test_endpoint". The user name defaults to the current logged in user.
File and directory path(s) given as input are assumed to be URL-encoded. For example, "%20" is equivalent to a space (" "). A literal "%" character must be encoded as "%25".
Create a directory under your home directory:
$ mkdir go#ep1/~/testfolder
mkdir returns 0 on success, and 1 if a network or server error occurred. mkdir returns 1 if the path already exists.