RecursiveCachingIterator::hasChildren
DirectoryIterator::__construct
Iterators
PHP Manual

# The DirectoryIterator class

## Введение

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

## Class synopsis

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

## Содержание

- 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