4.3.3 CreateDirectory

CreateDirectory is used to create a new FileDirectoryType Object organized by this Object.

Signature

	CreateDirectory(
		 [in] String 	directoryName
		 [out] NodeId 	directoryNodeId
		);
Argument Description
directoryName

The name of the directory to create. The name is used for the BrowseName and DisplayName of the directory object and also for the directory in the file system.

For the BrowseName, the directoryName is used for the name part of the QualifiedName. The namespace index is Server specific.

For the DisplayName, the directoryName is used for the text part of the LocalizedText. The locale part is Server specific.

directoryNodeIdThe NodeId of the created directory Object.

Method Result Codes (defined in Call Service)

Result Code Description
Bad_BrowseNameDuplicatedSee OPC 10000-4 for a general description. A directory with the name already exists.
Bad_UserAccessDeniedSee OPC 10000-4 for a general description.

Table 9 specifies the AddressSpace representation for the CreateDirectory Method.

Table 9 – CreateDirectory Method AddressSpace definition
Attribute Value
BrowseNameCreateDirectory
References NodeClass BrowseName DataType TypeDefinition ModellingRule
HasPropertyVariableInputArgumentsArgument[] PropertyTypeMandatory
HasPropertyVariableOutputArgumentsArgument[] PropertyTypeMandatory
Conformance Units
Base Info FileDirectoryType Base