Re: Linux directory heirarchy from within ROOT

From: Rene Brun <>
Date: Thu, 31 Aug 2006 12:32:02 +0200

see class TSystem/TUnixSystem with functions like:

   //---- Directories

   virtual int             MakeDirectory(const char *name);
   virtual void           *OpenDirectory(const char *name);
   virtual void            FreeDirectory(void *dirp);
   virtual const char     *GetDirEntry(void *dirp);
   virtual void           *GetDirPtr() const { return 0; }
   virtual Bool_t          ChangeDirectory(const char *path);
   virtual const char     *WorkingDirectory();
   virtual const char     *HomeDirectory(const char *userName = 0);
   virtual int             mkdir(const char *name, Bool_t recursive = 
   Bool_t                  cd(const char *path) { return 
ChangeDirectory(path); }
   const char             *pwd() { return WorkingDirectory(); }
   virtual const char     *TempDirectory() const;
   virtual FILE           *TempFileName(TString &base, const char *dir = 0);

   //---- Paths & Files

Rene Brun

Adam Roe wrote:
> Hi ROOT-ers,
> I'm sure this question has a simple answer, but i can't seem to find it.
> Within my macro i create a large (>1000) number of canvases, and write them out to the working directory as .gif files. From inside this macro, I am trying to create a Linux (i.e. NOT a ROOT Browser) folder hierarchy to store these .gif files. I have not been able to get this to work. Any ideas? Effectively, I would like to use the Browser structure, but in the linux directory, not within a .root file.
> Thanks,
> Adam
Received on Thu Aug 31 2006 - 12:32:09 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET