> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IXtfFileIOClient::CreateDirectory Method

> IXtfFileIOClient::CreateDirectory Method

# IXtfFileIOClient::CreateDirectory Method

Creates the specified directory on the development console.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
public:
HRESULT CreateDirectory(
         LPCWSTR pszDirectory
)  
```

<a id="parametersSection" />

### Parameters

*pszDirectory*\
Type: LPCWSTR

Pointer to the directory path to the directory to create on the development console.

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an HRESULT error code.

<a id="remarksSection" />

## Remarks

This function creates a directory on the development console. If an error occurs, this function returns an HRESULT error code. For more information about HRESULT error codes specific to XBOX Tools Framework (XTF) API, see [XTF transport errors (NDA topic)](/tools/tools-console/commandlinetools/xtf-transport-errors).

Use the [IXtfFileIOClient::RemoveDirectory](/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/removedirectory-ixtffileioclient-xtffileio-xbox-microsoft-m) method to remove a directory on the development console.

<a id="requirementsSection" />

## Requirements

**Header:** xtffileio.h

**Library:** xtffileio.lib

**Supported platforms:** Windows (for XBOX console tools)

<a id="seealsoSection" />

## See also

[IXtfFileIOClient Interface](/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/ixtffileioclient-xtffileio-xbox-microsoft-t)\
[XtfFileIO](/reference/tools/xtf/xtffileio/xtffileio-xbox-microsoft-n)
