A classe DirectoryIterator

(PHP 5, PHP 7)

Introdução

A classe DirectoryIterator fornece uma interface simples para visualização de conteúdo de diretórios de arquivos.

Sinopse da classe

DirectoryIterator extends SplFileInfo implements Iterator , Traversable , SeekableIterator {
/* Métodos */
__construct ( string $path )
getATime ( ) : int
public getBasename ([ string $sufixo ] ) : string
getCTime ( ) : int
public getExtension ( ) : string
getFilename ( ) : string
getGroup ( ) : int
getInode ( ) : int
getMTime ( ) : int
getOwner ( ) : int
getPath ( ) : string
getPathname ( ) : string
getPerms ( ) : int
getSize ( ) : int
getType ( ) : string
isDir ( ) : bool
isDot ( ) : bool
isExecutable ( ) : bool
isFile ( ) : bool
isLink ( ) : bool
isReadable ( ) : bool
isWritable ( ) : bool
key ( ) : string
next ( ) : void
rewind ( ) : void
public seek ( int $posicao ) : void
public __toString ( ) : string
valid ( ) : string
}

Índice