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));
    }
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));
    }
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 ) ) ; }
Flags the archive in specific states of extraction

@param \SplFileInfo $archive The archive to flag
@param string       $flag    The flag to set

@return void
Flags the archive in specific states of extraction