Join Up!
96807 members and counting!
PHP Manual
All Mail Lists
Entire Site
downloads
|
documentation
|
faq
|
getting help
|
mailing lists
|
reporting bugs
|
php.net sites
|
links
|
my php.net
s
earch for
in the
function list
whole site
online documentation [en]
bug database
general mailing list
developer mailing list
documentation mailing list
SPL
Index
Function Reference
Other Basic Extensions
SPL
Introduction
Installing/Configuring
Predefined Constants
Datastructures
SPL Functions
ArrayIterator
ArrayObject
CachingIterator
RecursiveCachingIterator
DirectoryIterator
FilterIterator
LimitIterator
ParentIterator
RecursiveDirectoryIterator
RecursiveIteratorIterator
SimpleXMLIterator
SplDoublyLinkedList
SplStack
SplQueue
HOME
Community
Articles
Code Library
People
Mail Archive
My Account
Contribute
PHP Jobs
RecursiveCachingIterator::hasChildren
DirectoryIterator::__construct
Last updated: Thu, 26 Jun 2008
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
add a note
User Contributed Notes
The DirectoryIterator class
There are no user contributed notes for this page.
Open Source Database Feature Comparison Matrix
Try Declarative Programming with Annotations and Aspects
Locate All Stored Procedures and Their Objects/SQL Tables
Building a Stored Procedure Generator
Making Tables Read-only in Oracle
24-hour Support
Daily Backup
Dedicated Servers
JSP/Java Servlets
PHP
MySQL
Streaming Audio/Video
Telnet/SSH
Unix Hosting
24-hour Support
RecursiveCachingIterator::hasChildren
DirectoryIterator::__construct
Last updated: Thu, 26 Jun 2008
show source
|
credits
|
sitemap
|
contact
|
advertising
|
mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror
is operated at:
http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles
|
Tips / Quickies
|
News
|
News Linking and RSS Feeds
|
Shared Code Library
Mail Archives
|
Support / Discussion Forums
|
Get Started!
Links
|
Contribute!
|
Docs