95 if (file[0] ==
'.' && file[1] ==
'\0')
97 else if (file[0] ==
'.' && file[1] ==
'.' && file[2] ==
'.')
133 flags =
id = size = modtime = 0;
172 if (!strcmp(file,
"."))
174 else if (!strcmp(file,
".."))
205 for (
int i = 0; i < size; i++) {
220 for (
int i = 0; i < size; i++) {
TSystemFile()
TSystemFile default constructor.
void Add(TObject *obj, const char *name=0, Int_t check=-1)
Add object with name to browser.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual const char * GetName() const
Returns name of object.
virtual void Add(TObject *obj)
virtual const char * WorkingDirectory()
Return working 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.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
TSystemDirectory()
Create a system directory object.
virtual void SetDirectory(const char *name)
Create a system directory object.
virtual Bool_t ChangeDirectory(const char *path)
Change directory.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void SetName(const char *name)
Set the name of the TNamed.
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
virtual const char * GetDirEntry(void *dirp)
Get a directory entry. Returns 0 if no more entries.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
Describes an Operating System directory for the browser.
TSystemDirectory & operator=(const TSystemDirectory &)
Assignment operator.
Using a TBrowser one can browse all ROOT objects.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
R__EXTERN TSystem * gSystem
void SetTitle(const char *title)
Set the title of the TNamed.
TSystemFile * FindFileObj(const char *name, const char *dir)
Method that returns system file object if it exists in list, 0 otherwise.
virtual void Browse(TBrowser *b)
Browse OS system directories.
virtual void FreeDirectory(void *dirp)
Free a directory.
virtual TList * GetListOfFiles() const
Returns a TList of TSystemFile objects representing the contents of the directory.
TOrdCollection * fDirsInBrowser
virtual ~TSystemDirectory()
Delete system directory object.
TOrdCollection * fFilesInBrowser
A TSystemFile describes an operating system file.
virtual void Add(TObject *obj)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Bool_t IsItDirectory(const char *name) const
Check if name is a directory.
TSystemDirectory * FindDirObj(const char *name)
Method that returns system directory object if it exists in list, 0 otherwise.
virtual void * OpenDirectory(const char *name)
Open a directory. Returns 0 if directory does not exist.
virtual Int_t GetSize() const
TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const