AppserverIo\Appserver\Core\AbstractExtractor::isUndeployable PHP Method

isUndeployable() public method

(non-PHPdoc)
See also: AppserverIo\Appserver\Core\Interfaces\ExtractorInterface::isUndeployable()
public isUndeployable ( SplFileInfo $archive ) : boolean
$archive SplFileInfo The archive object
return boolean
    public function isUndeployable(\SplFileInfo $archive)
    {
        // make sure that NO flag for the archive is available
        foreach ($this->getFlags() as $flag) {
            if (file_exists($archive->getPathname() . $flag)) {
                return false;
            }
        }
        // it's undeployable if NOT marker file exists
        return true;
    }