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

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:1:   // This is a roxen module. Copyright © 1996 - 1998, Idonex AB.      // This is a virtual "file-system".   // It will be located somewhere in the name-space of the server.   // Also inherited by some of the other filesystems.      inherit "module";   inherit "roxenlib";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.33 1998/04/24 09:30:00 per Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.34 1998/04/27 14:30:23 grubba Exp $";   constant thread_safe=1;         #include <module.h>   #include <roxen.h>   #include <stat.h>      #if DEBUG_LEVEL > 20   # ifndef FILESYSTEM_DEBUG   # define FILESYSTEM_DEBUG
Roxen.git/server/modules/filesystems/filesystem.pike:291:   }      mixed find_file( string f, object id )   {    TRACE_ENTER("find_file(\""+f+"\")", 0);       object o;    int size;    string tmp;    string oldf = f; +  + #ifdef FILESYSTEM_DEBUG +  roxen_perror("FILESYSTEM: Request for \""+f+"\"\n"); + #endif /* FILESYSTEM_DEBUG */ +     f = path + f;   #ifdef __NT__    if(f[-1]=='/') f = f[..strlen(f)-2];   #endif    size = FILE_SIZE( f );       switch(id->method)    {    case "GET":    case "HEAD":