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