Roxen.git / server / modules / tags / writefile.pike

version» Context lines:

Roxen.git/server/modules/tags/writefile.pike:5:   // This module is open source software; you can redistribute it and/or   // modify it under the terms of the GNU General Public License as published   // by the Free Software Foundation; either version 2, or (at your option) any   // later version.   //      #define _(X,Y) _DEF_LOCALE("mod_writefile",X,Y)   #define _ok id->misc->defines[" _ok"]      constant cvs_version = -  "$Id: writefile.pike,v 1.13 2003/01/08 10:24:31 mattias Exp $"; +  "$Id: writefile.pike,v 1.14 2003/03/13 15:13:20 mattias Exp $";   constant thread_safe = 1;      #include <module.h>   #include <config.h>      inherit "module";         // ---------------- Module registration stuff ----------------   
Roxen.git/server/modules/tags/writefile.pike:104:    rootpath:path),    Stdio.append_path(schroot, args->filename));    string real_dirname = id->conf->real_file(dirname(filename)+"/",id);    if (!real_dirname)    parse_error ("There is no file system for %O that supports this tag "    "(i.e. implements real_file).\n", dirname(filename));       real_filename = Stdio.append_path(real_dirname, basename(filename));       if(args->remove) { -  if(!rm(filename)) +  if(!rm(real_filename))    _ok = 0;    }    else    if(IS(args->moveto)) {    string filename =    Stdio.append_path(((schroot+args->moveto)[0]=='/'?    rootpath:path),    Stdio.append_path(schroot, args->moveto));    string real_dirname = id->conf->real_file(dirname(filename)+"/",id);    if (!real_dirname)