appzz/finder

Find files,sort,filter uses iterators

2.0.5 2022-08-22 10:40 UTC

This package is auto-updated.

Last update: 2024-11-29 05:26:44 UTC


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);