classes/phing/system/io/FileSystem.php
public function listContents(PhingFile $f)
    {
        return array_keys(
            iterator_to_array(
                new FilesystemIterator(
                    $f->getAbsolutePath(),
                    FilesystemIterator::KEY_AS_FILENAME
                )
            )
        );
    }
public function listContents(PhingFile $f)
    {
        return array_keys(
            iterator_to_array(
                new FilesystemIterator(
                    $f->getAbsolutePath(),
                    FilesystemIterator::KEY_AS_FILENAME
                )
            )
        );
    }
public function listContents ( PhingFile $ f ) { return array_keys ( iterator_to_array ( new FilesystemIterator ( $ f -> getAbsolutePath ( ) , FilesystemIterator :: KEY_AS_FILENAME ) ) ) ; }
returns the contents of a directory in an array

@param  PhingFile $f
@return string[]
returns the contents of a directory in an array