(PHP 5 >= 5.3.0)
L'itérateur FilesystemIterator.
$path
[, int $flags
= FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS
] )FilesystemIterator::CURRENT_AS_PATHNAME
FilesystemIterator::current() retourne le nom du chemin.
FilesystemIterator::CURRENT_AS_FILEINFO
FilesystemIterator::current() retourne un objet SplFileInfo.
FilesystemIterator::CURRENT_AS_SELF
FilesystemIterator::current() retourne $this (le FilesystemIterator).
FilesystemIterator::CURRENT_MODE_MASK
Masque FilesystemIterator::current().
FilesystemIterator::KEY_AS_PATHNAME
FilesystemIterator::key() retourne le nom de chemin.
FilesystemIterator::KEY_AS_FILENAME
FilesystemIterator::key() retourne le nom du fichier.
FilesystemIterator::FOLLOW_SYMLINKS
Makes RecursiveDirectoryIterator::hasChildren() follow symlinks.
FilesystemIterator::KEY_MODE_MASK
Masque FilesystemIterator::key().
FilesystemIterator::NEW_CURRENT_AND_KEY
Identique à FilesystemIterator::KEY_AS_FILENAME | FilesystemIterator::CURRENT_AS_FILEINFO.
FilesystemIterator::SKIP_DOTS
Ignore les fichiers points (. et ..).
FilesystemIterator::UNIX_PATHS
Les chemins utilisen le séparateur de dossier de type Unix, soit le slash, indépendamment du système de fonctionnement.
Version | Description |
---|---|
5.3.1 | Ajout de FilesystemIterator::FOLLOW_SYMLINKS |