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

version» Context lines:

Roxen.git/server/modules/filesystems/tarfs.pike:1:   // This is a roxen module. Copyright © 2000 - 2001, Roxen IS.      inherit "module";    - constant cvs_version = "$Id: tarfs.pike,v 1.11 2002/06/14 00:08:07 nilsson Exp $"; + constant cvs_version = "$Id: tarfs.pike,v 1.12 2004/06/04 08:29:20 _cvs_stephen Exp $";      // The Filesystem.Tar module is not threadsafe.   constant thread_safe = 0;      #include <module.h>      constant module_type = MODULE_LOCATION;   constant module_name = "File systems: Tar File";   constant module_doc =   ("This is a file system module that makes it possible to mount a "
Roxen.git/server/modules/filesystems/tarfs.pike:41:   {    string path = "", tf = query( "tarfile" );    mp = query("mountpoint");    sscanf( tf, "%s:%s", tf, path );    tar = 0;    if( catch(tar = Filesystem.Tar( tf )) )    {    report_error( "Failed to open tar-file "+tf+"!\n" );    tar = 0;    } -  else if( strlen( path ) ) +  else if( sizeof( path ) )    tar->cd( path );   }         string query_location()   {    return mp;   }      Stat stat_file( string f, RequestID id )