1 | <?php |
||
13 | class Directory |
||
14 | { |
||
15 | /** |
||
16 | * Scans a dir recursively for files that match the given extension |
||
17 | * |
||
18 | * @param string $extension |
||
19 | * @return array|Traversable collections of files |
||
20 | * @throws \Exception |
||
21 | */ |
||
22 | 5 | public static function recursiveSearchByExtension($path, $extension, Array $excludes = null) |
|
39 | |||
40 | /** |
||
41 | * Checks if a path is inside another |
||
42 | * |
||
43 | * @param string $path |
||
44 | * @param string $subpath |
||
45 | * @return boolean |
||
46 | */ |
||
47 | 5 | public static function isSubpath($path, $subpath) |
|
53 | } |
||
54 |