Roxen.git
/
server
/
base_server
/
module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/base_server/module.pike:1:
// This file is part of Roxen Webserver. // Copyright © 1996 - 2000, Roxen IS.
-
// $Id: module.pike,v 1.
101
2000
/
12
/
05
00
:
24
:
25
nilsson
Exp $
+
// $Id: module.pike,v 1.
102
2001
/
02
/
19
16
:
06
:
21
jonasw
Exp $
#include <module_constants.h> #include <module.h> #include <request_trace.h> inherit "basic_defvar"; mapping(string:array(int)) error_log=([]); constant is_module = 1; constant module_type = MODULE_ZERO;
Roxen.git/server/base_server/module.pike:423:
array(string) find_dir(string f, RequestID id){} mapping(string:Stat) find_dir_stat(string f, RequestID id) { TRACE_ENTER("find_dir_stat(): \""+f+"\"", 0); array(string) files = find_dir(f, id); mapping(string:Stat) res = ([]); foreach(files || ({}), string fname) { TRACE_ENTER("stat()'ing "+ f + "/" + fname, 0);
-
Stat st = stat_file(f + "/" + fname, id);
+
Stat st = stat_file(
replace(
f + "/" + fname,
"//", "/"),
id);
if (st) { res[fname] = st; TRACE_LEAVE("OK"); } else { TRACE_LEAVE("No stat info"); } } TRACE_LEAVE(""); return(res);