Roxen.git / server / modules / filesystems / filesystem.pike

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:562:       dirlists++;       // Pass _all_ files, hide none.    if(tilde && dotfiles &&    (!sizeof( internal_files ) || id->misc->internal_get))    return dir;       dir = Array.filter(dir, dir_filter_function, id);    +  if (path_encoding != "iso-8859-1") { +  dir = map(dir, decode_path); +  } +     if (!id->misc->internal_get)    foreach (internal_files, string globstr)    dir -= glob (globstr, dir);       return dir;   }      void recursive_rm(string real_dir, string virt_dir,    int(0..1) check_status_needed, RequestID id)   {    SIMPLE_TRACE_ENTER(this, "Deleting all files in directory %O...", real_dir);    foreach(get_dir(real_dir) || ({}), string fname) {    string real_fname = combine_path(real_dir, fname); -  string virt_fname = virt_dir + "/" + fname; +  string virt_fname = virt_dir + "/" + decode_path(fname);       Stat stat = file_stat(real_fname);    if (!stat) {    id->set_status_for_path(virt_fname, 404);    TRACE_LEAVE("File not found.");    continue;    }    SIMPLE_TRACE_ENTER(this, "Deleting %s %O.",    stat->isdir?"directory":"file", real_fname);    int(0..1)|mapping sub_status;