Spatie\Backup\Tasks\Backup\FileSelection::sanitize PHP Méthode

sanitize() protected méthode

protected sanitize ( string | array $paths ) : Collection
$paths string | array
Résultat Illuminate\Support\Collection
    protected function sanitize($paths) : Collection
    {
        return collect($paths)->reject(function ($path) {
            return $path === '';
        })->flatMap(function ($path) {
            return glob($path);
        })->map(function ($path) {
            return realpath($path);
        })->reject(function ($path) {
            return $path === false;
        });
    }