Package Ganga :: Package Core :: Module FileWorkspace :: Class FileWorkspace
[hide private]
[frames] | no frames]

Class FileWorkspace

source code

Known Subclasses:


File workspace  on a local file system.   FileWorkspace object may
represent any  part of the directory tree  (including 'top' i.e.
root of the workspace).

Files may be stored on  a 'per job' basis (optional jobid argument
to create  method). A subpath may  specify a specific  part of the
file workspace  (such as input/output sandbox). Note  that you may
use  FileWorkspace to  store files  which are  not related  to any
partical job (or are shared between jobs).

The general directory layout :
 getPath() resolves to 'top/jobid/subpath/*'

Old 'splittree' option has been disabled and always defaults to 0.
It should not be modified because it will not work with sbjobs in the future.
    
If  jobid  is  None  then  FileWorkspace  represents  the  topmost
directory (with a given subpath  which may be an empty string ''),
i.e.: getPath() resolves to 'top/subpath/*' or 'top/*' 

Instance Methods [hide private]
 
__init__(self, top, subpath='', splittree=0) source code
 
create(self, jobid=None)
create a workspace, an optional jobid parameter specifies the job directory you can call create() as many times as you want without any harm
source code
 
getPath(self, filename=None) source code
 
writefile(self, fileobj, executable=None) source code
 
remove(self, preserve_top=None) source code