| 2113 |
if (file.EndsWith(".root")) { |
if (file.EndsWith(".root")) { |
| 2114 |
TString filedir; |
TString filedir; |
| 2115 |
cout << ddir << endl; |
cout << ddir << endl; |
| 2116 |
if (ddir != "") { |
if ( ddir != "" ) { |
| 2117 |
filedir = ddir; // take the input dir |
filedir = ddir; // take the input dir |
| 2118 |
} |
} |
| 2119 |
else { |
else { |
| 2121 |
filedir = gSystem->DirName(file); // this will take the path if exist in the list otherwise it will return automatically the working dir |
filedir = gSystem->DirName(file); // this will take the path if exist in the list otherwise it will return automatically the working dir |
| 2122 |
}; |
}; |
| 2123 |
filedir.Append("/"); |
filedir.Append("/"); |
| 2124 |
char *fullpath = gSystem->ConcatFileName(gSystem->DirName(filedir), gSystem->BaseName(file)); |
// char *fullpath = gSystem->ConcatFileName(gSystem->DirName(filedir), gSystem->BaseName(file)); |
| 2125 |
|
char *fullpath = gSystem->ConcatFileName(filedir.Data(), gSystem->BaseName(file)); |
| 2126 |
contents->Add(new TSystemFile(fullpath, gSystem->DirName(fullpath)));// add file to the list |
contents->Add(new TSystemFile(fullpath, gSystem->DirName(fullpath)));// add file to the list |
| 2127 |
cout << fullpath << endl; |
cout << fullpath << endl; |
| 2128 |
delete fullpath; |
delete fullpath; |