Hi,
Certainly not a tough question for you i’m going mad with it:
I have a physical directory and i simply want to remove it:
- I don’t see anything like that in TSystem
- It seems that TSystemFile or TSystemDirectory suits for what i want but maybe i don’t use it well… cos my directory is still there!
What is the right thing to do?
Thanks
Of course i can create a recursive c++ function to remove subdirectories but i hope that ROOT can help me
Hi,
What about something like this:
Cheers, Bertrand.
This is what i used to do, but i need a method compliant with WINDOWS so
gSystem->Exec("rm -rf dirname");
won’t work!
Cédric
Then maybe something like this:
#ifdef WIN32
gSystem->Exec("rmdir /s /q dirname");
#else
gSystem->Exec("rm -rf dirname");
#endif
Bertrand.
Mmmh indeed, i believe that i want to do things the hard way!
ok! i’ll use this! Simple and efficient!
Thanks a lot Bertrand!