src/Core/Manifest/ManifestFileFinder.php
public function isDirectoryIgnored($basename, $pathname, $depth)
    {
        // Don't ignore root
        if ($depth === 0) {
            return false;
        }

        // Check if manifest-ignored is present
        if (file_exists($pathname . '/' . self::EXCLUDE_FILE)) {
            return true;
        }

        // Check if directory name is ignored
        $ignored = $this->getIgnoredDirs();
        if (in_array($basename, $ignored)) {
            return true;
        }

        // Ignore these dirs in the root only
        if ($depth === 1 && in_array($basename, [ASSETS_DIR, RESOURCES_DIR])) {
            return true;
        }

        return false;
    }
public function isDirectoryIgnored($basename, $pathname, $depth)
    {
        // Don't ignore root
        if ($depth === 0) {
            return false;
        }

        // Check if manifest-ignored is present
        if (file_exists($pathname . '/' . self::EXCLUDE_FILE)) {
            return true;
        }

        // Check if directory name is ignored
        $ignored = $this->getIgnoredDirs();
        if (in_array($basename, $ignored)) {
            return true;
        }

        // Ignore these dirs in the root only
        if ($depth === 1 && in_array($basename, [ASSETS_DIR, RESOURCES_DIR])) {
            return true;
        }

        return false;
    }
public function isDirectoryIgnored ( $ basename , $ pathname , $ depth ) { // Don't ignore root if ( $ depth === 0 ) { return false ; } // Check if manifest-ignored is present if ( file_exists ( $ pathname . '/' . self :: EXCLUDE_FILE ) ) { return true ; } // Check if directory name is ignored $ ignored = $ this -> getIgnoredDirs ( ) ; if ( in_array ( $ basename , $ ignored ) ) { return true ; } // Ignore these dirs in the root only if ( $ depth === 1 && in_array ( $ basename , [ ASSETS_DIR , RESOURCES_DIR ] ) ) { return true ; } return false ; }
Check if the given directory is ignored
@param string $basename
@param string $pathname
@param string $depth
@return bool
Check if the given directory is ignored