You are here

protected function ConfigurationExportManager::createDirectory in Configuration Management 7.3

2 calls to ConfigurationExportManager::createDirectory()
ConfigurationExportManager::dumpConfiguration in src/Helpers/ConfigurationExportManager.php
ConfigurationExportManager::dumpFiles in src/Helpers/ConfigurationExportManager.php

File

src/Helpers/ConfigurationExportManager.php, line 196
ConfigurationExportManager.php handles the export of configurations.

Class

ConfigurationExportManager

Namespace

Configuration\Helpers

Code

protected function createDirectory($path) {
  if (!in_array($path, $this->created_directories)) {
    try {
      $this->fs
        ->mkdir($path);
      $this->created_directories[] = $path;
    } catch (IOExceptionInterface $e) {
      echo "The directory for configs could not be created: " . $e
        ->getPath();
    }
  }
}