Show TOC

MKDIRLocate this document in the navigation structure

Use

Creates a folder under a workspace. The command creates the folder locally and adds it to the server:

  • In case the folder already exists locally, it is only added to the server.

  • In case the folder does not exist locally but already exists on the server, the folder is synchronized to the local file system.

You always create a folder in the context of an activity. The activity name is given by the -a option. In case the activity display name is given instead of the activity name, then the -dn option must also be specified. In case you do not specify an activity, the default activity for the current workspace will be used. If the activity to be used does not exist yet, it will be created.

Syntax

Syntax

MKDIR [-a activityName] [-dn] <folderPath>

Arguments

[-a activityName]

If specified, the folders will be checked out for creation in the given activity. If it is not specified, then the default activity for the workspace is used. If the specified activity does not exist, it will be created.

[-dn]

Specified if the name of the activity given is the display name and not the actual name. This is only in case you specify an already existing activity.

<folderPath>

Path to the folder where the folder should be created.

Description

Creates a directory locally and adds it to the server. The folder is created only if the path is mounted. If the local directory exists already, it is added to the server. If the directory exists on the server but not locally, the folder is synchronized to the local file system.

Example

Creating a Folder in a Specific Activity in the Current Folder

To create a (sub)folder named src using activity a1 in the current working folder //path/to/wsp , execute:

mkdir -a a1 src

Note

The activity used to create a folder directly under a workspace is created and checked in implicitly (immediately). Activities used to create folders deeper under the workspace are to be checked in explicitly by the user.