Changeset 18978

Show
Ignore:
Timestamp:
15.04.2009 15:49:50 (10 years ago)
Author:
kjdon
Message:

made group col use / instead of \\ - we check for this later. so now groups work on windows web library

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/colservr/collectset.cpp

    r17989 r18978  
    379379  text_tarray cfgline; 
    380380  text_t key; 
    381   text_t build_cfg = filename_cat(collect_group_dir, "etc", "collect.cfg"); 
    382   char *collect_cfgc = build_cfg.getcstr(); 
     381  text_t collect_cfg = filename_cat(collect_group_dir, "etc", "collect.cfg"); 
     382  char *collect_cfgc = collect_cfg.getcstr(); 
    383383  ifstream confin(collect_cfgc); 
    384384 
     
    399399 
    400400  if (is_collect_group == "true") { 
    401  
    402401    if (read_dir (collect_group_dir, group)) { 
    403402       
     
    406405       
    407406      while (thiscol != endcol) { 
    408     // ignore the modelcol 
     407    // ignore the etc directory 
    409408    if (*thiscol == "etc") { 
    410409      ++thiscol; 
     
    412411    } 
    413412     
    414     text_t group_col = filename_cat(collection,*thiscol); 
     413    //text_t group_col = filename_cat(collection,*thiscol); 
     414    // later we check for / in the name. When this is used in a path (via fileanme_cat) the / will be converted  to \ on windows 
     415    text_t group_col = collection + "/" + *thiscol; 
    415416    this->add_collection (group_col, gsdlhome, collecthome); 
    416417