16 void importdir(
const char *dirname) {
17 char *
slash = (
char*)strrchr(dirname,
'/');
19 if (slash) locdir = slash+1;
20 else locdir = (
char*)dirname;
21 printf(
"processing dir %s\n",dirname);
33 if (direntry[0] ==
'.')
continue;
34 if (!strcmp(direntry,
"CVS"))
continue;
35 if (!strcmp(direntry,
"htmldoc"))
continue;
36 if (strstr(dirname,
"root/include"))
continue;
37 if (strstr(direntry,
"G__"))
continue;
38 if (strstr(direntry,
".c") ||
39 strstr(direntry,
".h") ||
40 strstr(direntry,
".dat") ||
41 strstr(direntry,
".py") ||
42 strstr(direntry,
".C")) {
47 if (flags != 3)
continue;
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
int GetPathInfo(const char *path, Long_t *id, Long_t *size, Long_t *flags, Long_t *modtime)
Get info about a file: id, size, flags, modification time.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Class supporting a collection of lines with C++ code.
virtual TDirectory * mkdir(const char *name, const char *title="")
Create a sub-directory "a" or a hierarchy of sub-directories "a/b/c/...".
virtual const char * GetDirEntry(void *dirp)
Get a directory entry. Returns 0 if no more entries.
R__EXTERN TSystem * gSystem
char * Form(const char *fmt,...)
virtual void FreeDirectory(void *dirp)
Free a directory.
Describe directory structure in memory.
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
virtual void * OpenDirectory(const char *name)
Open a directory. Returns 0 if directory does not exist.