Errata exists for this version of the document.
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. |
directoryNodeId |
The NodeId of the created directory Object. |
Method Result Codes (defined in Call Service)
Result Code |
Description |
Bad_BrowseNameDuplicated |
See OPC 10000-4 for a general description. A directory with the name already exists. |
Bad_UserAccessDenied |
See OPC 10000-4 for a general description. |
Table C.9 specifies the AddressSpace representation for the CreateDirectory Method.
Table C.9 – CreateDirectory Method AddressSpace Definition
Attribute |
Value |
||||
BrowseName |
CreateDirectory |
||||
References |
NodeClass |
BrowseName |
DataType |
TypeDefinition |
ModellingRule |
HasProperty |
Variable |
InputArguments |
Argument[] |
PropertyType |
Mandatory |
HasProperty |
Variable |
OutputArguments |
Argument[] |
PropertyType |
Mandatory |