public function FileSync::deleteExportDirectory in Tome 8
Deletes the file export directory.
Return value
bool Whether or not the deletion was successful.
Overrides FileSyncInterface::deleteExportDirectory
File
- modules/
tome_sync/ src/ FileSync.php, line 59
Class
- FileSync
- Handles file import and exports by keeping a file export directory in sync.
Namespace
Drupal\tome_syncCode
public function deleteExportDirectory() {
$file_directory = $this
->getFileDirectory();
if (file_exists($file_directory)) {
if (!$this->fileSystem
->deleteRecursive($file_directory)) {
return FALSE;
}
}
return TRUE;
}