45 if (Path ==
".") Path =
"$(PWD)";
107 Error(
"GetListings",
"Cannot open directory %s",
GetTitle());
111 const char*
file = 0;
119 if (
file[0] ==
'.' &&
file[1] ==
'\0')
121 else if (
file[0] ==
'.' &&
file[1] ==
'.' &&
file[2] ==
'\0')
129 if (sdirpath !=
"") {
156 printf(
"%s :\n[total : %lld / files : %lld bytes]\n\n",
161 if (!strcmp(opt,
"nosubdirs")) {
166 printf(
"%-60s [total : %lld / files : %lld bytes]\n",
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
R__EXTERN TSystem * gSystem
Extension of ROOT TSystemDirectory class, handling browsing directories on disk.
KVSystemDirectory()
Default constructor.
virtual TList * GetListOfDirectories() const
Long64_t fTotFiles
total size of files in directory
void ls(Option_t *option="") const
TList * fSubdirs
subdirectories of directory
Long64_t fTotDirs
total size of files in subdirectories
TList * fContents
contents of directory
Long64_t GetTotalFiles() const
virtual void GetListings()
Fill lists of files and directories.
Long64_t GetTotalSize() const
virtual ~KVSystemDirectory()
Destructor.
virtual TList * GetListOfFiles() const
Extended ROOT TSystemFile with added info on file size etc.
virtual void SetOwner(Bool_t enable=kTRUE)
virtual void Add(TObject *obj)
virtual const char * GetTitle() const
virtual void Error(const char *method, const char *msgfmt,...) const
static Int_t IncreaseDirLevel()
static void IndentLevel()
static Int_t DecreaseDirLevel()
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
const char * Data() const
Bool_t IsItDirectory(const char *name) const
void SetTitle(const char *title)
virtual void FreeDirectory(void *dirp)
virtual void * OpenDirectory(const char *name)
virtual const char * GetDirEntry(void *dirp)
virtual char * ExpandPathName(const char *path)