File Status structure. More...

#include <Stat.h>

Inheritance diagram for IFS::Stat:
Collaboration diagram for IFS::Stat:

Public Member Functions

 Stat ()
 
 Stat (char *namebuf, uint16_t bufsize)
 
Statoperator= (const Stat &rhs)
 assign content from another Stat structure More...
 
bool isDir () const
 Is this a directory (or mountpoint) ? More...
 
size_t printTo (Print &p) const
 

Public Attributes

IFileSystemfs {nullptr}
 The filing system owning this file. More...
 
NameBuffer name
 Name of file. More...
 
file_size_t size {0}
 Size of file in bytes. More...
 
FileID id {0}
 Internal file identifier. More...
 
TimeStamp mtime {}
 File modification time. More...
 
ACL acl {UserRole::None, UserRole::None}
 Access Control. More...
 
FileAttributes attr {}
 
Compression compression {}
 

Detailed Description

File Status structure.

Constructor & Destructor Documentation

◆ Stat() [1/2]

IFS::Stat::Stat ( )
inline

◆ Stat() [2/2]

IFS::Stat::Stat ( char *  namebuf,
uint16_t  bufsize 
)
inline

Member Function Documentation

◆ isDir()

bool IFS::Stat::isDir ( ) const
inline

Is this a directory (or mountpoint) ?

◆ operator=()

Stat& IFS::Stat::operator= ( const Stat rhs)
inline

assign content from another Stat structure

Note
All fields are copied as for a normal assignment, except for 'name', where rhs.name contents are copied into our name buffer.

◆ printTo()

size_t IFS::Stat::printTo ( Print p) const

Member Data Documentation

◆ acl

ACL IFS::Stat::acl {UserRole::None, UserRole::None}

Access Control.

◆ attr

FileAttributes IFS::Stat::attr {}

◆ compression

Compression IFS::Stat::compression {}

◆ fs

IFileSystem* IFS::Stat::fs {nullptr}

The filing system owning this file.

◆ id

FileID IFS::Stat::id {0}

Internal file identifier.

◆ mtime

TimeStamp IFS::Stat::mtime {}

File modification time.

◆ name

NameBuffer IFS::Stat::name

Name of file.

◆ size

file_size_t IFS::Stat::size {0}

Size of file in bytes.


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