MPD: StorageFileInfo Struct Reference

MPD 0.20.15

Public Types | Public Member Functions | Data Fields
StorageFileInfo Struct Reference

`#include <FileInfo.hxx>`

## Public Types
enum | Type : uint8_t { Type::OTHER, Type::REGULAR, Type::DIRECTORY }

## Public Member Functions
constexpr bool | IsRegular () const
constexpr bool | IsDirectory () const

## Data Fields
Type | type
uint64_t | size
| The file size in bytes. More...
time_t | mtime
| The modification time. More...
uint64_t | device
| Device id and inode number. More...
uint64_t | inode

## Detailed Description

Definition at line 28 of file FileInfo.hxx.

## Member Enumeration Documentation

## ◆ Type

enum StorageFileInfo::Type : uint8_t
| strong

Enumerator
OTHER |
REGULAR |
DIRECTORY |

Definition at line 29 of file FileInfo.hxx.

## Member Function Documentation

## ◆ IsDirectory()

constexpr bool StorageFileInfo::IsDirectory | ( |  | ) | const
| inline

Definition at line 57 of file FileInfo.hxx.

## ◆ IsRegular()

constexpr bool StorageFileInfo::IsRegular | ( |  | ) | const
| inline

Definition at line 53 of file FileInfo.hxx.

## Field Documentation

## ◆ device

uint64_t StorageFileInfo::device

Device id and inode number.

0 means unknown / not applicable.

Definition at line 51 of file FileInfo.hxx.

## ◆ inode

uint64_t StorageFileInfo::inode

Definition at line 51 of file FileInfo.hxx.

## ◆ mtime

time_t StorageFileInfo::mtime

The modification time.

0 means unknown / not applicable.

Definition at line 45 of file FileInfo.hxx.

## ◆ size

uint64_t StorageFileInfo::size

The file size in bytes.

Only valid for #Type::REGULAR.

Definition at line 40 of file FileInfo.hxx.

## ◆ type

Type StorageFileInfo::type

Definition at line 35 of file FileInfo.hxx.

The documentation for this struct was generated from the following file:

- storage/FileInfo.hxx