Spatie\Backup\Tasks\Backup\FileSelection::shouldExclude PHP Method

shouldExclude() protected method

protected shouldExclude ( string $path ) : boolean
$path string
return boolean
    protected function shouldExclude(string $path) : bool
    {
        foreach ($this->excludeFilesAndDirectories as $excludedPath) {
            if (starts_with($path, $excludedPath)) {
                return true;
            }
        }
        return false;
    }