private function getArchiveFiles(): array {

        $list = [];

        for ( $i = 0; $i < $this->getArchive()->numFiles; $i++ ) {

            $file = $this->getArchive()->statIndex($i);
            if ( $file === false ) {
                continue;
            }

            $name = str_replace('\\', '/', $file['name']);
            if (
                (
                    $name[0] == "." &&
                    in_array($this->getSkipMode(), ["HIDDEN", "ALL"])
                ) ||
                (
                    $name[0] == "." &&
                    @$name[1] == "_" &&
                    in_array($this->getSkipMode(), ["COMODOJO", "ALL"])
                )
            ) {
                continue;
            }

            $list[] = $name;

        }

        return $list;

    }
private function getArchiveFiles(): array {

        $list = [];

        for ( $i = 0; $i < $this->getArchive()->numFiles; $i++ ) {

            $file = $this->getArchive()->statIndex($i);
            if ( $file === false ) {
                continue;
            }

            $name = str_replace('\\', '/', $file['name']);
            if (
                (
                    $name[0] == "." &&
                    in_array($this->getSkipMode(), ["HIDDEN", "ALL"])
                ) ||
                (
                    $name[0] == "." &&
                    @$name[1] == "_" &&
                    in_array($this->getSkipMode(), ["COMODOJO", "ALL"])
                )
            ) {
                continue;
            }

            $list[] = $name;

        }

        return $list;

    }
private function getArchiveFiles ( ) : array { $ list = [ ] ; for ( $ i = 0 ; $ i < $ this -> getArchive ( ) -> numFiles ; $ i ++ ) { $ file = $ this -> getArchive ( ) -> statIndex ( $ i ) ; if ( $ file === false ) { continue ; } $ name = str_replace ( '\\' , '/' , $ file [ 'name' ] ) ; if ( ( $ name [ 0 ] == "." && in_array ( $ this -> getSkipMode ( ) , [ "HIDDEN" , "ALL" ] ) ) || ( $ name [ 0 ] == "." && @ $ name [ 1 ] == "_" && in_array ( $ this -> getSkipMode ( ) , [ "COMODOJO" , "ALL" ] ) ) ) { continue ; } $ list [ ] = $ name ; } return $ list ; }
Get a list of file contained in zip archive before extraction

@return array
Get a list of file contained in zip archive before extraction