Directory
9 entries
chdir
Changes the process working directory to the given path (relative paths resolve against the current one).
dir
The directory object (Directory class: dir() → read() loop → close()) — OOP directory traversal forming three read paradigms with readdir (procedural) and scandir (one-shot materialization); read returns unsorted entries including . and ..
getcwd
Returns the absolute path of the process working directory.
glob
Matches paths in a directory against a shell wildcard pattern, returning a sorted array.
is_dir
Tells whether the given filename is a directory.
mkdir
Creates a directory, optionally creating missing parent directories recursively.
readdir
Reads one entry at a time from a directory handle (streaming, memory-friendly for huge directories); omitting the handle argument is deprecated since PHP 8.5.
rmdir
Removes an empty directory.
scandir
Lists files and directories inside the specified path.