LOG IN
BEGINNER GUIDES
|
PHP CLASSES
|
CODE SEARCH
|
ARTICLES SEARCH
|
PHP FORUMS
|
PHP MANUAL
|
PHP FUNCTIONS LIST
|
WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles
Submit Your Code
SEO Monitor
UpTime Monitor
PHP Code Contest
My Favorite Examples
My Favorite Articles
Update Your Profile
More Weber Sites
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
Recommended Links
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Recommended
Submit Site
Forex Trading
Online forex trading platform
The DirectoryIterator class
RecursiveCachingIterator::hasChildren
DirectoryIterator::__construct
SPL
PHP Manual
The DirectoryIterator class
Introduction
...
Class synopsis
DirectoryIterator
class
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
)
}
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
SPL
PHP Manual