src/acdhOeaw/util/Indexer.php
private function isSkippedExisting(File $file): bool {
        if (!in_array($this->skipMode, [self::SKIP_EXIST, self::SKIP_BINARY_EXIST])) {
            return false;
        }
        try {
            $res = $file->getResource(false, false);
            return $res->isBinary() || $this->skipMode === self::SKIP_EXIST;
        } catch (MetaLookupException $e) {
            if ($this->metaLookupRequire) {
                return true;
            } else {
                throw $e;
            }
        } catch (NotFound $e) {
            return false;
        }
    }
private function isSkippedExisting(File $file): bool {
        if (!in_array($this->skipMode, [self::SKIP_EXIST, self::SKIP_BINARY_EXIST])) {
            return false;
        }
        try {
            $res = $file->getResource(false, false);
            return $res->isBinary() || $this->skipMode === self::SKIP_EXIST;
        } catch (MetaLookupException $e) {
            if ($this->metaLookupRequire) {
                return true;
            } else {
                throw $e;
            }
        } catch (NotFound $e) {
            return false;
        }
    }
private function isSkippedExisting ( File $ file ) : bool { if ( ! in_array ( $ this -> skipMode , [ self :: SKIP_EXIST , self :: SKIP_BINARY_EXIST ] ) ) { return false ; } try { $ res = $ file -> getResource ( false , false ) ; return $ res -> isBinary ( ) || $ this -> skipMode === self :: SKIP_EXIST ; } catch ( MetaLookupException $ e ) { if ( $ this -> metaLookupRequire ) { return true ; } else { throw $ e ; } } catch ( NotFound $ e ) { return false ; } }
Checks if a given file should be skipped because it already exists in the
repository while the Indexer skip mode is set to SKIP_EXIST or SKIP_BINARY_EXIST.
@param File $file file to be checked
@return bool
@throws MetaLookupException
Checks if a given file should be skipped because it already exists in the repository while the Indexer skip mode is set to SKIP_EXIST or SKIP_BINARY_EXIST .