Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::FileSystemIterator::Entry Struct Reference

Contains information on a file or directory. More...

#include <FileSystemIterator.h>

Public Member Functions

bool isDirectory () const
 Check if current entry is a directory. More...
 

Public Attributes

StringView name
 Name of current entry (file with extension or directory) More...
 
StringView path
 Absolute path of the current entry. More...
 
uint32_t level = 0
 Current level of nesting from start of iteration. More...
 
Type type = Type::File
 Tells if it's a file or a directory. More...
 

Friends

struct Internal
 

Detailed Description

Contains information on a file or directory.

Member Function Documentation

◆ isDirectory()

bool SC::FileSystemIterator::Entry::isDirectory ( ) const
inline

Check if current entry is a directory.

Member Data Documentation

◆ level

uint32_t SC::FileSystemIterator::Entry::level = 0

Current level of nesting from start of iteration.

◆ name

StringView SC::FileSystemIterator::Entry::name

Name of current entry (file with extension or directory)

◆ path

StringView SC::FileSystemIterator::Entry::path

Absolute path of the current entry.

◆ type

Type SC::FileSystemIterator::Entry::type = Type::File

Tells if it's a file or a directory.


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