use Symfony\Component\Filesystem\Filesystem; $filesystem = new Filesystem(); $filesystem->mkdir('/path/to/directory');
use Symfony\Component\Filesystem\Filesystem; $filesystem = new Filesystem(); $filesystem->mkdir(['/path/to/directory', '/path/to/another/directory']);In this example, we pass an array of paths to the `mkdir` method, which will create both directories and any necessary subdirectories. This method is part of the `symfony/filesystem` package.