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

unflagArchive() public method

Deletes all old flags, so the app will be undeployed with the next appserver restart.
public unflagArchive ( SplFileInfo $archive ) : void
$archive SplFileInfo The archive to unflag
return void
    public function unflagArchive(\SplFileInfo $archive)
    {
        foreach ($this->getFlags() as $flagString) {
            if (file_exists($archive->getRealPath() . $flagString)) {
                unlink($archive->getRealPath() . $flagString);
            }
        }
    }