38 :
TNamed(filename, dirname)
58 flags =
id =
size = modtime = 0;
72 b->ExecuteDefaultAction(
this);
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());
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
R__EXTERN TSystem * gSystem
Using a TBrowser one can browse all ROOT objects.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
The TNamed class is the base class for all named ROOT classes.
virtual const char * GetName() const
Returns name of object.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
@ kCanDelete
if object in a list can be deleted
const char * Data() const
A TSystemFile describes an operating system file.
TSystemFile()
TSystemFile default constructor.
virtual void Move(const char *to)
move this file
virtual void Delete()
delete this file
virtual void Rename(const char *name)
rename this file
virtual void Edit()
Invoke text editor on this file.
virtual void Browse(TBrowser *b)
Execute default action for this system file (action is specified in the $HOME/.root....
virtual void Copy(const char *to)
copy this file
virtual void Inspect() const
inspect this file
virtual void Dump() const
dump this file
virtual Bool_t IsDirectory(const char *dir=0) const
Check if object is a directory.
virtual ~TSystemFile()
Delete TSystemFile object.
virtual int CopyFile(const char *from, const char *to, Bool_t overwrite=kFALSE)
Copy a file.
virtual char * ConcatFileName(const char *dir, const char *name)
Concatenate a directory and a file name. User must delete returned string.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
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 int Rename(const char *from, const char *to)
Rename a file.
virtual int Unlink(const char *name)
Unlink, i.e.