function SandboxManagerBase::sandboxDirectoryExists

Determines if the stage directory exists.

Return value

bool TRUE if the directory exists, otherwise FALSE.

1 call to SandboxManagerBase::sandboxDirectoryExists()
SandboxManagerBase::destroy in core/modules/package_manager/src/SandboxManagerBase.php
Deletes the stage directory.

File

core/modules/package_manager/src/SandboxManagerBase.php, line 757

Class

SandboxManagerBase
Creates and manages a stage directory in which to install or update code.

Namespace

Drupal\package_manager

Code

public function sandboxDirectoryExists() : bool {
    try {
        return is_dir($this->getSandboxDirectory());
    } catch (\LogicException) {
        return FALSE;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.