-
Notifications
You must be signed in to change notification settings - Fork 0
addFolder
Corey Avis edited this page Sep 24, 2026
·
3 revisions
Creates a new folder or nested folder hierarchy at the specified path if it does not already exist.
addFolder(string $folder): bool
folder (string)
: The name, relative path, or nested directory structure to create (e.g., images or uploads/images).
(bool)
: Returns true if the folder exists or was successfully created, and false if directory creation failed.
// Create a single directory
$file->addFolder('images');
// Recursively create nested directorie in one call
$file->addFolder('uploads/images');
- No debug errors.