You are here

public function Exporter::deleteExportDirectories in Tome 8

Deletes all content and files from the export directories.

Return value

bool Whether or not the deletion was successful.

Overrides ExporterInterface::deleteExportDirectories

File

modules/tome_sync/src/Exporter.php, line 125

Class

Exporter
Handles exporting of content and file entities.

Namespace

Drupal\tome_sync

Code

public function deleteExportDirectories() {
  $this->contentStorage
    ->deleteAll();
  $this
    ->deleteContentIndex();
  if (!$this->fileSync
    ->deleteExportDirectory()) {
    return FALSE;
  }
  return TRUE;
}