AppserverIo\Appserver\Core\AbstractExtractor::flagArchive PHP Метод

flagArchive() публичный Метод

Flags the archive in specific states of extraction
public flagArchive ( SplFileInfo $archive, string $flag ) : void
$archive SplFileInfo The archive to flag
$flag string The flag to set
Результат void
    public function flagArchive(\SplFileInfo $archive, $flag)
    {
        // delete all old flags
        $this->unflagArchive($archive);
        // flag the passed archive
        file_put_contents($archive->getPathname() . $flag, $archive->getPathname());
        // set correct user/group for the flag file
        $this->setUserRight(new \SplFileInfo($archive->getPathname() . $flag));
    }