public function isDirExcluded ($path)
	{
		foreach ($this->excludedDirs as $needle)
		{
			if (empty($needle)) {
				continue;
			}

			$needleLen = strlen($needle);
			$pathChunk = substr($path, -$needleLen, $needleLen);

			// check if matches end of $path
			if ($pathChunk == $needle) {
				return true;
			}
		}
		return false;
	}
public function isDirExcluded ($path)
	{
		foreach ($this->excludedDirs as $needle)
		{
			if (empty($needle)) {
				continue;
			}

			$needleLen = strlen($needle);
			$pathChunk = substr($path, -$needleLen, $needleLen);

			// check if matches end of $path
			if ($pathChunk == $needle) {
				return true;
			}
		}
		return false;
	}
public function isDirExcluded ( $ path ) { foreach ( $ this -> excludedDirs as $ needle ) { if ( empty ( $ needle ) ) { continue ; } $ needleLen = strlen ( $ needle ) ; $ pathChunk = substr ( $ path , - $ needleLen , $ needleLen ) ; // check if matches end of $path if ( $ pathChunk == $ needle ) { return true ; } } return false ; }
Is this path excluded from the scan?
@param string $path
@return bool
Is this path excluded from the scan?