File::glob PHP 메소드

glob() 공개 정적인 메소드

Find path names matching a given pattern.
public static glob ( string $pattern, integer $flags ) : array
$pattern string
$flags integer
리턴 array
        public static function glob($pattern, $flags = 0)
        {
            return \Illuminate\Filesystem\Filesystem::glob($pattern, $flags);
        }

Usage Example

예제 #1
0
파일: TestCase.php 프로젝트: talv86/easel
 /**
  * @return \Illuminate\Support\Collection
  */
 private function resetIndexes()
 {
     $storagePath = str_finish(realpath(storage_path()), DIRECTORY_SEPARATOR) . '*.index';
     return collect(\File::glob($storagePath))->each(function ($index) {
         unlink($index);
     });
 }
All Usage Examples Of File::glob