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;
}