Directory

9 entries

chdir Function Changes the process working directory to the given path (relative paths resolve against the current one). dir Function 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 Function Returns the absolute path of the process working directory. glob Function Matches paths in a directory against a shell wildcard pattern, returning a sorted array. is_dir Function Tells whether the given filename is a directory. mkdir Function Creates a directory, optionally creating missing parent directories recursively. readdir Function 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 Function Removes an empty directory. scandir Function Lists files and directories inside the specified path.