You are here

protected function Exporter::prepareDirectory in Default Content for D8 8

Helper for ::writeDefaultContent to wrap file_prepare_directory().

Parameters

string $path: Content directory + entity directory to prepare.

1 call to Exporter::prepareDirectory()
Exporter::writeDefaultContent in src/Exporter.php
Writes an array of serialized entities to a given folder.

File

src/Exporter.php, line 244

Class

Exporter
A service for handling import of default content.

Namespace

Drupal\default_content

Code

protected function prepareDirectory($path) {
  $this->fileSystem
    ->prepareDirectory($path, FileSystemInterface::CREATE_DIRECTORY);
}