Code Samples using findFiles?

Does anyone have an example of a directory search and result display?



<?php


$dir    = '/tmp';


$files1 = scandir($dir);


$files2 = scandir($dir, 1);





print_r($files1);


print_r($files2);


?> 





Second parameter: sorting order 





framework/cli/commands/MessageCommand.php

qwerty - thanks but I was seeking framework usage examples

qiang - got it, now to experiment a bit.  Thanks…

	$files=CFileHelper::findFiles(realpath($sourcePath),$options);





	foreach($files as $file)