118 Error(
"CheckDirectory",
"Problem executing %s", cmd.
Data());
149 Info(
"DeleteDirectory",
"Deleting %s", dirpath);
154 TIter nxtFile(files);
160 if (strcmp(fil->
GetName(),
"..") && strcmp(fil->
GetName(),
".")) {
174 Info(
"DeleteDirectory",
"Directory %s deleted", dirpath);
176 Info(
"DeleteDirectory",
"Cannot delete directory %s", dirpath);
Bool_t SearchFile(const Char_t *name, TString &fullpath, int ndirs,...)
Search for file in an arbitrary number of locations, return kTRUE if file found and put full path to ...
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
char * Form(const char *fmt,...)
R__EXTERN TSystem * gSystem
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Handles directories stored in .tgz archive files.
void init()
Default initialisations for ctors.
void CheckDirectory(const Char_t *dirname, const Char_t *path)
KVTarArchive()
Default constructor.
Bool_t fOK
set to kTRUE if directory/archive is found
Bool_t fTGZ
set to kTRUE if directory is extracted from '.tgz' archive
void DeleteDirectory(const Char_t *dirpath)
KVString fFullpath
full path to directory if found/extracted
virtual const char * GetName() const
virtual const char * GetTitle() const
virtual void Error(const char *method, const char *msgfmt,...) const
virtual void Info(const char *method, const char *msgfmt,...) const
const char * Data() const
void Form(const char *fmt,...)
TString & Remove(EStripType s, char c)
virtual TList * GetListOfFiles() const
virtual Bool_t IsDirectory(const char *dir=0) const
Bool_t cd(const char *path)
virtual const char * DirName(const char *pathname)
virtual Int_t Exec(const char *shellcmd)
virtual const char * BaseName(const char *pathname)
virtual const char * WorkingDirectory()
virtual int Unlink(const char *name)