Skip to content
Snippets Groups Projects
Commit 6682225d authored by Fons Rademakers's avatar Fons Rademakers
Browse files

From Andreas:

MkDir() returns now an Int_t instead of a Bool_t. Patch is needed for
the ALICE ODBC.


git-svn-id: http://root.cern.ch/svn/root/trunk@31993 27541ba8-7e3a-0410-8455-c3a389f83636
parent ccf5669b
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ public:
virtual const char *Pwd(Bool_t verbose=kFALSE);
virtual const char *GetHomeDirectory() { return fHome.Data(); }
virtual Bool_t Cd(const char *ldn="", Bool_t verbose=kFALSE);
virtual Bool_t Mkdir(const char *ldn="", Option_t *options="", Bool_t verbose=kFALSE);
virtual Int_t Mkdir(const char *ldn="", Option_t *options="", Bool_t verbose=kFALSE);
virtual Bool_t Rmdir(const char *ldn="", Option_t *options="", Bool_t verbose=kFALSE);
virtual Bool_t Register(const char *lfn, const char *turl, Long_t size=-1,
const char *se=0, const char *guid=0, Bool_t verbose=kFALSE);
......
......@@ -504,7 +504,7 @@ const char* TAlien::Pwd(Bool_t verbose)
}
//______________________________________________________________________________
Bool_t TAlien::Mkdir(const char* ldn, Option_t* options, Bool_t verbose)
Int_t TAlien::Mkdir(const char* ldn, Option_t* options, Bool_t verbose)
{
TString cmdline = TString("mkdir");
if (strlen(options)) {
......@@ -523,15 +523,15 @@ Bool_t TAlien::Mkdir(const char* ldn, Option_t* options, Bool_t verbose)
const char* result = (GetStreamFieldValue(kOUTPUT,0,0));
if (result) {
if (strlen(result) > 0) {
if (atoi(result) == 1) {
return kTRUE;
if (atoi(result) > 0) {
return atoi(result);
}
}
}
Error("Mkdir","Cannot create directory %s\n",ldn);
if (!verbose) Stdout();
return kFALSE;
return 0;
}
//______________________________________________________________________________
......@@ -775,4 +775,3 @@ TGridResult* TAlien::ListPackages(const char* alienpackagedir)
}
return gr;
}
......@@ -58,7 +58,7 @@ public:
virtual TGridResult* Ls(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
virtual const char* Pwd(Bool_t /*verbose*/ = kFALSE);
virtual Bool_t Cd(const char *_ldn = "", Bool_t /*verbose*/ = kFALSE);
virtual Bool_t Mkdir(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
virtual Int_t Mkdir(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
virtual Bool_t Rmdir(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
virtual Bool_t Register(const char *_lfn, const char *_turl , Long_t /*size*/ = -1, const char *_se = 0, const char *_guid = 0, Bool_t /*verbose*/ = kFALSE);
virtual Bool_t Rm(const char *_lfn, Option_t* /*option*/ = "", Bool_t /*verbose*/ = kFALSE);
......
......@@ -435,7 +435,7 @@ Bool_t TGLite::Cd(const char *_ldn, Bool_t /*verbose*/)
//______________________________________________________________________________
Bool_t TGLite::Mkdir(const char *_ldn, Option_t* /*options*/, Bool_t /*verbose*/)
Int_t TGLite::Mkdir(const char *_ldn, Option_t* /*options*/, Bool_t /*verbose*/)
{
// A File Catalog method. Create a new directory on the name server.
// INPUT:
......
......@@ -96,7 +96,7 @@ public:
{ MayNotUse("GetHomeDirectory"); return 0; }
virtual Bool_t Cd(const char* /*ldn*/ ="",Bool_t /*verbose*/ =kFALSE)
{ MayNotUse("Cd"); return kFALSE; }
virtual Bool_t Mkdir(const char* /*ldn*/ ="", Option_t* /*options*/ ="", Bool_t /*verbose*/ =kFALSE)
virtual Int_t Mkdir(const char* /*ldn*/ ="", Option_t* /*options*/ ="", Bool_t /*verbose*/ =kFALSE)
{ MayNotUse("Mkdir"); return kFALSE; }
virtual Bool_t Rmdir(const char* /*ldn*/ ="", Option_t* /*options*/ ="", Bool_t /*verbose*/ =kFALSE)
{ MayNotUse("Mkdir"); return kFALSE; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment