public function allFiles() {
        return $this->cata(function(FSObject $obj) {
            if ($obj->isFile()) {
                return array($obj);
            }

            assert($obj instanceof FDirectory);
            $fcontents = $obj->fcontents();
            if (empty($fcontents)) {
                return $fcontents;
            }
            return call_user_func_array("array_merge", $fcontents);
        });
    }
public function allFiles() {
        return $this->cata(function(FSObject $obj) {
            if ($obj->isFile()) {
                return array($obj);
            }

            assert($obj instanceof FDirectory);
            $fcontents = $obj->fcontents();
            if (empty($fcontents)) {
                return $fcontents;
            }
            return call_user_func_array("array_merge", $fcontents);
        });
    }
public function allFiles ( ) { return $ this -> cata ( function ( FSObject $ obj ) { if ( $ obj -> isFile ( ) ) { return array ( $ obj ) ; } assert ( $ obj instanceof FDirectory ) ; $ fcontents = $ obj -> fcontents ( ) ; if ( empty ( $ fcontents ) ) { return $ fcontents ; } return call_user_func_array ( "array_merge" , $ fcontents ) ; } ) ; }
Get a list of all files in the directory and subjacent directories.

@return File[]
Get a list of all files in the directory and subjacent directories .