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

version» Context lines:

Roxen.git/server/modules/filesystems/tarfs.pike:1:   // This is a ChiliMoon module. Copyright © 2000 - 2001, Roxen IS.      inherit "module";    - constant cvs_version = "$Id: tarfs.pike,v 1.13 2004/06/05 15:19:44 _cvs_dirix Exp $"; + constant cvs_version = "$Id: tarfs.pike,v 1.14 2004/07/17 23:01:37 _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:76:    if(!tar) return 0;    return tar->get_dir( f );   }      mixed find_file( string f, RequestID id )   {    if(!tar) return 0;    object s = tar->stat( f );    if( !s ) return 0;    if( s->isdir() ) return -1; -  return StringFile( tar->open( f, "r" )->read(), +  return Stdio.FakeFile( tar->open( f, "r" )->read(),    stat_file( f, id ));   }