---
name: "LIBMTP_folder_struct"
section: "3"
platform: "linux"
package: "libmtp"
version: "1.1.23-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/LIBMTP_folder_struct"
---

# LIBMTP\_folder\_struct(3)

## NAME

LIBMTP\_folder\_struct

## 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

## 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()**, 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.
