---
name: "mtp_LIBMTP_folder_struct"
section: "3"
platform: "linux"
package: "libmtp-doc"
version: "1.1.22-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mtp_LIBMTP_folder_struct"
---

# mtp\_LIBMTP\_folder\_struct(3)

## NAME

libmtp -

## SYNOPSIS

`#include <libmtp.h>`

### Data Fields

uint32\_t **folder\_id**\
 uint32\_t **parent\_id**\
 uint32\_t **storage\_id**\
 char \* **name**\
 **LIBMTP\_folder\_t** \* **sibling**\
 **LIBMTP\_folder\_t** \* **child**\

## Detailed Description

MTP Folder structure

**Examples** **delfile.c**, **folders.c**, **getfile.c**, **newfolder.c**, **sendfile.c**, and **sendtr.c**.

## Field Documentation

### LIBMTP\_folder\_t\* LIBMTP\_folder\_struct::child

Child folder or NULL if no children

**Examples** **folders.c**.

Referenced by **LIBMTP\_destroy\_folder\_t()**, **LIBMTP\_Find\_Folder()**, and **LIBMTP\_Get\_Folder\_List\_For\_Storage()**.

### uint32\_t LIBMTP\_folder\_struct::folder\_id

Unique folder ID

**Examples** **folders.c**.

Referenced by **LIBMTP\_Find\_Folder()**, **LIBMTP\_Get\_Folder\_List\_For\_Storage()**, **LIBMTP\_new\_folder\_t()**, and **LIBMTP\_Set\_Folder\_Name()**.

### char\* LIBMTP\_folder\_struct::name

Name of folder

**Examples** **folders.c**.

Referenced by **LIBMTP\_destroy\_folder\_t()**, **LIBMTP\_Get\_Folder\_List\_For\_Storage()**, and **LIBMTP\_Set\_Folder\_Name()**.

### uint32\_t LIBMTP\_folder\_struct::parent\_id

ID of parent folder

Referenced by **LIBMTP\_Get\_Folder\_List\_For\_Storage()**.

### LIBMTP\_folder\_t\* LIBMTP\_folder\_struct::sibling

Next folder at same level or NULL if no more

**Examples** **folders.c**.

Referenced by **LIBMTP\_destroy\_folder\_t()**, **LIBMTP\_Find\_Folder()**, and **LIBMTP\_Get\_Folder\_List\_For\_Storage()**.

### uint32\_t LIBMTP\_folder\_struct::storage\_id

ID of storage holding this folder

Referenced by **LIBMTP\_Get\_Folder\_List\_For\_Storage()**.

## Author

Generated automatically by Doxygen for libmtp from the source code.
