Changeset View
Changeset View
Standalone View
Standalone View
src/filesystem/FileFinder.php
<?php | <?php | ||||
/** | /** | ||||
* Find files on disk matching criteria, like the 'find' system utility. Use of | * Find files on disk matching criteria, like the 'find' system utility. Use of | ||||
* this class is straightforward: | * this class is straightforward: | ||||
* | * | ||||
* // Find PHP files in /tmp | * // Find PHP files in /tmp | ||||
* $files = id(new FileFinder('/tmp')) | * $files = (new FileFinder('/tmp')) | ||||
* ->withType('f') | * ->withType('f') | ||||
* ->withSuffix('php') | * ->withSuffix('php') | ||||
* ->find(); | * ->find(); | ||||
* | * | ||||
* @task create Creating a File Query | * @task create Creating a File Query | ||||
* @task config Configuring File Queries | * @task config Configuring File Queries | ||||
* @task exec Executing the File Query | * @task exec Executing the File Query | ||||
* @task internal Internal | * @task internal Internal | ||||
▲ Show 20 Lines • Show All 349 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0