RecursiveCachingIterator::hasChildren
DirectoryIterator::__construct
Iterators
PHP Manual

# The DirectoryIterator class

## Introduction

The DirectoryIterator class provides a simple interface for viewing the contents of filesystem directories.

## Class synopsis

DirectoryIterator
DirectoryIterator extends SplFileInfo implements Iterator , Traversable {
/* Methods */
DirectoryIterator::__construct ( string `$path` )
DirectoryIterator DirectoryIterator::current ( void )
int DirectoryIterator::getATime ( void )
int DirectoryIterator::getCTime ( void )
string DirectoryIterator::getFilename ( void )
int DirectoryIterator::getGroup ( void )
int DirectoryIterator::getInode ( void )
int DirectoryIterator::getMTime ( void )
int DirectoryIterator::getOwner ( void )
string DirectoryIterator::getPath ( void )
string DirectoryIterator::getPathname ( void )
int DirectoryIterator::getPerms ( void )
int DirectoryIterator::getSize ( void )
string DirectoryIterator::getType ( void )
bool DirectoryIterator::isDir ( void )
bool DirectoryIterator::isDot ( void )
bool DirectoryIterator::isExecutable ( void )
bool DirectoryIterator::isFile ( void )
bool DirectoryIterator::isLink ( void )
bool DirectoryIterator::isReadable ( void )
bool DirectoryIterator::isWritable ( void )
string DirectoryIterator::key ( void )
void DirectoryIterator::next ( void )
void DirectoryIterator::rewind ( void )
string DirectoryIterator::valid ( void )
}

## Table of Contents

- DirectoryIterator::__construct — Constructs a new dir iterator from a path
- DirectoryIterator::current — Return this (needed for Iterator interface)
- DirectoryIterator::getATime — Get last access time of file
- DirectoryIterator::getCTime — Get inode modification time of file
- DirectoryIterator::getFilename — Return filename of current dir entry
- DirectoryIterator::getGroup — Get file group
- DirectoryIterator::getInode — Get file inode
- DirectoryIterator::getMTime — Get last modification time of file
- DirectoryIterator::getOwner — Get file owner
- DirectoryIterator::getPath — Return directory path
- DirectoryIterator::getPathname — Return path and filename of current dir entry
- DirectoryIterator::getPerms — Get file permissions
- DirectoryIterator::getSize — Get file size
- DirectoryIterator::getType — Get file type
- DirectoryIterator::isDir — Returns true if file is directory
- DirectoryIterator::isDot — Returns true if current entry is '.' or '..'
- DirectoryIterator::isExecutable — Returns true if file is executable
- DirectoryIterator::isFile — Returns true if file is a regular file
- DirectoryIterator::isLink — Returns true if file is symbolic link
- DirectoryIterator::isReadable — Returns true if file can be read
- DirectoryIterator::isWritable — Returns true if file can be written
- DirectoryIterator::key — Return current dir entry
- DirectoryIterator::next — Move to next entry
- DirectoryIterator::rewind — Rewind dir back to the start
- DirectoryIterator::valid — Check whether dir contains more entries

RecursiveCachingIterator::hasChildren
DirectoryIterator::__construct
Iterators
PHP Manual