protected function createDirectory()
{
// Directory.
$directory = $this->getDirectory();
// Check if the directory exists.
if (!$this->files->isDirectory($directory)) {
// Create the directory if not.
$this->files->makeDirectory($directory, 0755, true);
}
}