Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS. - // $Id: module.pike,v 1.241 2009/11/24 15:21:51 stewa Exp $ + // $Id: module.pike,v 1.242 2010/03/31 13:47:11 marty Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      constant __pragma_save_parent__ = 1;      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;   
Roxen.git/server/base_server/module.pike:583:       if (ret) {    SIMPLE_TRACE_LEAVE ("Got status %d: %O", ret->error, ret->rettext);    return ret;    }    }       if (properties->get_stat()->isdir) {    if (depth <= 0) {    SIMPLE_TRACE_LEAVE ("Not recursing due to depth limit"); -  return 0; +  return ([]);    }    depth--;    foreach(find_dir(path, id) || ({}), string filename) {    filename = combine_path_unix(path, filename);    if (mapping(string:mixed) sub_res = recurse(filename, depth))    if (sizeof (sub_res))    result->add_status (filename, sub_res->error, sub_res->rettext);    }    }