appzz / finder
Find files,sort,filter uses iterators
2.0.5
2022-08-22 10:40 UTC
Requires
- php: >=5.3.3
- appzz/arr: 1.*
README
Find files via RecursiveIteratorIterator
- Search files, filter by types, sort items, ignore (or not) hidden files
Usage
$finder = Finder::factory('path/to/dir')
->types', ['mp4', 'mov']
->exclude ('(foo|bar)')
->exclude_paths('path')
->hidden(FALSE)
->find()
->sort('size', TRUE); //name, date, type
$files = get_files(['mtime', 'size', 'owner', 'perms']);
var_dump($files);