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 - 2001, Roxen IS. - // $Id: module.pike,v 1.204 2004/05/13 13:40:52 grubba Exp $ + // $Id: module.pike,v 1.205 2004/05/13 14:03:28 grubba Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      constant __pragma_save_parent__ = 1;      inherit "basic_defvar";   mapping(string:array(int)) error_log=([]);   
Roxen.git/server/base_server/module.pike:1507:    // Copy failed.    return res;    }    int fail;    foreach(find_dir(source, id), string filename) {    string subsrc = combine_path_unix(source, filename);    string subdst = combine_path_unix(destination, filename);    SIMPLE_TRACE_ENTER(this, "Recursive move from %O to %O\n",    subsrc, subdst);    mapping(string:mixed) sub_res = -  recurse_move_file(subsrc, subdst, behavior, overwrite, id); +  recurse_move_files(subsrc, subdst, behavior, overwrite, id);    if (sub_res && (sub_res->error != 204) && (sub_res->error != 201)) {    result->add_status(subdst, sub_res->error, sub_res->rettext);    if (sub_res->error >= 300) {    // Failed to move some content.    fail = 1;    }    }    }    if (fail) return ([]);    return delete_file(source, id);   }      //! Move/rename a file or collection (aka directory). - mapping(string:mixed) recurse_move_file(string source, string destination, + mapping(string:mixed) recurse_move_files(string source, string destination,    PropertyBehavior behavior,    Overwrite overwrite, RequestID id)   {    Stat st = stat_file(source, id);    if (!st) return 0;       if (st->isdir) {    return move_collection(source, destination, behavior, overwrite, id);    }    return move_file(source, destination, behavior, overwrite, id);