libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::File::Metadata Struct Reference

Record of metadata for a specific virtual file. More...

#include <donut/File.hpp>

Public Attributes

std::size_t size
 File size, in bytes, or NPOS if unavailable. More...
 
std::int64_t creationTime
 Time when the file was created, in seconds since the Unix epoch (1970-01-01 00:00), or -1 if unavailable. More...
 
std::int64_t lastAccessTime
 Last time when the file was accessed, in seconds since the Unix epoch (1970-01-01 00:00), or -1 if unavailable. More...
 
std::int64_t lastModificationTime
 Last time when the file was modified, in seconds since the Unix epoch (1970-01-01 00:00), or -1 if unavailable. More...
 
Kind kind
 Kind of file, such as regular file or directory. More...
 
bool readOnly
 True if the file may only be opened for reading, false if it may also be opened for writing. More...
 

Detailed Description

Record of metadata for a specific virtual file.

Member Data Documentation

◆ size

std::size_t donut::File::Metadata::size

File size, in bytes, or NPOS if unavailable.

◆ creationTime

std::int64_t donut::File::Metadata::creationTime

Time when the file was created, in seconds since the Unix epoch (1970-01-01 00:00), or -1 if unavailable.

◆ lastAccessTime

std::int64_t donut::File::Metadata::lastAccessTime

Last time when the file was accessed, in seconds since the Unix epoch (1970-01-01 00:00), or -1 if unavailable.

◆ lastModificationTime

std::int64_t donut::File::Metadata::lastModificationTime

Last time when the file was modified, in seconds since the Unix epoch (1970-01-01 00:00), or -1 if unavailable.

◆ kind

Kind donut::File::Metadata::kind

Kind of file, such as regular file or directory.

◆ readOnly

bool donut::File::Metadata::readOnly

True if the file may only be opened for reading, false if it may also be opened for writing.


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