Branch: Tag:

1997-10-20

1997-10-20 15:17:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

find_dir_stat() now returns a mapping(string:array(mixed)).

Rev: server/base_server/configuration.pike:1.83
Rev: server/base_server/module.pike:1.25
Rev: server/protocols/ftp.pike:1.66

1: - /* $Id: module.pike,v 1.24 1997/09/27 13:24:52 grubba Exp $ */ + /* $Id: module.pike,v 1.25 1997/10/20 15:16:59 grubba Exp $ */      #include <module.h>   
473:      mixed stat_file(string f, object id){}   mixed find_dir(string f, object id){} + mapping(string:array(mixed)) find_dir_stat(string f, object id) + { +  array(string) files = find_dir(f, id); +  mapping(string:array(mixed)) res = ([]); +  +  foreach(files || ({}), string f) { +  array(mixed) st = stat_file(f, id); +  if (st) { +  res[f] = st; +  } +  } +  return(res); + }   mixed real_file(string f, object id){}      object get_font_from_var(string base)