JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::DirectoryEntry Class Referencefinal

Describes the attributes of a file or folder. More...

#include <juce_RangedDirectoryIterator.h>

Collaboration diagram for juce::DirectoryEntry:

Public Member Functions

Time getCreationTime () const
 The time at which the item was created. More...
 
float getEstimatedProgress () const
 The estimated proportion of the range that has been visited by the iterator, from 0.0 to 1.0. More...
 
File getFile () const
 The path to a file or folder. More...
 
int64 getFileSize () const
 The size of the item. More...
 
Time getModificationTime () const
 The time at which the item was last modified. More...
 
bool isDirectory () const
 True if the item is a directory, false otherwise. More...
 
bool isHidden () const
 True if the item is hidden, false otherwise. More...
 
bool isReadOnly () const
 True if the item is read-only, false otherwise. More...
 

Private Attributes

Time creationTime
 
bool directory = false
 
File file
 
int64 fileSize = 0
 
bool hidden = false
 
std::weak_ptr< DirectoryIterator > iterator
 
Time modTime
 
bool readOnly = false
 

Friends

class RangedDirectoryIterator
 

Detailed Description

Describes the attributes of a file or folder.

@tags{Core}

Member Function Documentation

◆ getCreationTime()

Time juce::DirectoryEntry::getCreationTime ( ) const
inline

The time at which the item was created.

◆ getEstimatedProgress()

float juce::DirectoryEntry::getEstimatedProgress ( ) const

The estimated proportion of the range that has been visited by the iterator, from 0.0 to 1.0.

◆ getFile()

File juce::DirectoryEntry::getFile ( ) const
inline

The path to a file or folder.

◆ getFileSize()

int64 juce::DirectoryEntry::getFileSize ( ) const
inline

The size of the item.

◆ getModificationTime()

Time juce::DirectoryEntry::getModificationTime ( ) const
inline

The time at which the item was last modified.

◆ isDirectory()

bool juce::DirectoryEntry::isDirectory ( ) const
inline

True if the item is a directory, false otherwise.

◆ isHidden()

bool juce::DirectoryEntry::isHidden ( ) const
inline

True if the item is hidden, false otherwise.

◆ isReadOnly()

bool juce::DirectoryEntry::isReadOnly ( ) const
inline

True if the item is read-only, false otherwise.

Friends And Related Function Documentation

◆ RangedDirectoryIterator

friend class RangedDirectoryIterator
friend

Member Data Documentation

◆ creationTime

Time juce::DirectoryEntry::creationTime
private

◆ directory

bool juce::DirectoryEntry::directory = false
private

◆ file

File juce::DirectoryEntry::file
private

◆ fileSize

int64 juce::DirectoryEntry::fileSize = 0
private

◆ hidden

bool juce::DirectoryEntry::hidden = false
private

◆ iterator

std::weak_ptr<DirectoryIterator> juce::DirectoryEntry::iterator
private

◆ modTime

Time juce::DirectoryEntry::modTime
private

◆ readOnly

bool juce::DirectoryEntry::readOnly = false
private

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