IFsiDirectoryItem::AddDirectory method

Adds a directory to the file system image.

Syntax


HRESULT AddDirectory(
  [in]  BSTR path
);

Parameters

path [in]

String that contains the relative path of directory to create.

Specify the full path when calling this method from the root directory item.

Return value

S_OK is returned on success, but other success codes may be returned as a result of implementation. The following error codes are commonly returned on operation failure, but do not represent the only possible error values:

Return codeDescription
IMAPI_E_INVALID_PATH

Path '%1!s!' is badly formed or contains invalid characters.

Value: 0xC0AAB110

IMAPI_E_INVALID_PARAM

The value specified for parameter %1!ls! is not valid.

Value: 0xC0AAB101

IMAPI_E_NOT_IN_FILE_SYSTEM

ls!' is not part of the file system. It must be added to complete this operation.

Value: 0xC0AAB10B

IMAPI_E_READONLY

FileSystemImage object is in read only mode.

Value: 0xC0AAB102

 

Remarks

The parent directory for the new subdirectory must already exist within the file system image.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

IDL

Imapi2fs.idl

See also

IFsiDirectoryItem
IFsiDirectoryItem::Add
IFsiDirectoryItem::AddFile
IFsiDirectoryItem::AddTree
IFsiDirectoryItem::Remove

 

 

Community Additions

ADD
Show:
© 2014 Microsoft