# FolderTreeNodeResult

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.FolderTreeNodeResult/

The result for one submitted folder. The result list has one entry per submitted node, in the same order.

- **Full name:** `MFiles.FolderTreeNodeResult`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-restored"></a>`restored` | `bool` | 1 | True when a deleted same-named folder was restored, false when a new folder was created. |
| <a id="f-folder_id"></a>`folder_id` | `int32` | 2 | The ID of the folder. |
| <a id="f-name"></a>`name` | `string` | 3 | The name actually used. |
| <a id="f-renamed"></a>`renamed` | `bool` | 4 | True when the rename policy changed the name. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCValueLists.CreateFolderTree](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCValueLists/CreateFolderTree/index.md): Creates a tree of traditional folders under one anchor in one transaction: either every folder is created or the call fails and nothing is saved.

<a id="used-in-fields"></a>

## Used in fields

- [`CreateFolderTreeResponse.nodes`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCValueLists/CreateFolderTree/index.md#response): One result per submitted folder, in the order of the request.
