38 :
TNamed(filename, dirname)
58 flags =
id = size = modtime = 0;
84 if (!strcmp(ed,
"vi"))
116 Warning(
"Copy",
"File %s already exists", name.
Data());
117 }
else if (status == -1) {
118 Warning(
"Copy",
"Failed to move file %s", name.
Data());
128 Warning(
"Move",
"No file/dir name specified");
144 }
else if (status == -2) {
145 Warning(
"Move",
"File %s already exists", name.
Data());
146 }
else if (status == -1) {
147 Warning(
"Move",
"Failed to move file %s", name.
Data());
TSystemFile()
TSystemFile default constructor.
virtual const char * GetName() const
Returns name of object.
virtual ~TSystemFile()
Delete TSystemFile object.
virtual void Move(const char *to)
move this file
virtual void Dump() const
dump this file
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.
void ExecuteDefaultAction(TObject *obj)
Execute default action for selected object (action is specified in the $HOME/.root.mimes or $ROOTSYS/etc/root.mimes file).
virtual Bool_t IsDirectory(const char *dir=0) const
Check if object is a directory.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
if object in a list can be deleted
virtual int Rename(const char *from, const char *to)
Rename a file.
virtual void Copy(const char *to)
copy this file
virtual int Unlink(const char *name)
Unlink, i.e. remove, a file.
virtual void Rename(const char *name)
rename this file
The TNamed class is the base class for all named ROOT classes.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
Using a TBrowser one can browse all ROOT objects.
R__EXTERN TSystem * gSystem
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
virtual void Delete()
delete this file
virtual Int_t Exec(const char *shellcmd)
Execute a command.
virtual void Browse(TBrowser *b)
Execute default action for this system file (action is specified in the $HOME/.root.mimes or $ROOTSYS/etc/root.mimes file.
A TSystemFile describes an operating system file.
virtual void Edit()
Invoke text editor on this file.
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
virtual int CopyFile(const char *from, const char *to, Bool_t overwrite=kFALSE)
Copy a file.
virtual void Inspect() const
inspect this file
virtual char * ConcatFileName(const char *dir, const char *name)
Concatenate a directory and a file name. User must delete returned string.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
const char * Data() const