App\services\Media::gatherFiles PHP 메소드

gatherFiles() 공개 메소드

Gather all applicable files in a given directory.
public gatherFiles ( string $path ) : array
$path string The directory's full path
리턴 array An array of SplFileInfo objects
    public function gatherFiles($path)
    {
        return Finder::create()->ignoreUnreadableDirs()->ignoreDotFiles((bool) config('koel.ignore_dot_files'))->files()->followLinks()->name('/\\.(mp3|ogg|m4a|flac)$/i')->in($path);
    }