60 if (!FindExecutable(fexec)) {
85 if (fcmd ==
"")
return -1;
100 if (fcmd ==
"")
return TString(
"");
116 return (
line.BeginsWith(
"C-"));
136 Error(
"GetListing",
"Unknown directory %s", directory);
144 for (
int i = 1; i < toks->
GetEntries(); i++) {
147 if (IsContainer(tmp)) {
152 ExtractFileInfos(tmp,
f);
173 if (DirectoryContains(filename.
Data(), dirname.
Data())) {
177 if (IsContainer(fout)) {
181 ExtractFileInfos(fout, &fs);
203 Error(
"GetListing",
"Unknown directory %s", directory);
211 for (
int i = 1; i < toks->
GetEntries(); i++) {
214 if (IsContainer(tmp)) {
219 f->SetName(tmp.
Data());
238 TList* list = GetListing(directory);
265 cout << GetName() <<
"/" << endl;
267 cout << GetName() <<
"\t" << GetSize() <<
"\t" << GetModTime().AsString() << endl;
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
R__EXTERN TSystem * gSystem
void SetIsContainer(Bool_t yes=kTRUE)
Base class for KaliVeda framework.
Abstract base class for interfaces to Data Management Systems (SRB, IRODS, etc.)
virtual Bool_t GetPathInfo(const Char_t *path, DMSFile_t &fs)
virtual Bool_t DirectoryContains(const Char_t *name, const Char_t *directory="")
virtual TList * GetListing(const Char_t *directory="")
Bool_t buildCommand(const Char_t *scmd, const Char_t *args="", Option_t *opts="")
virtual Bool_t IsContainer(TString &) const
virtual KVUniqueNameList * GetFullListing(const Char_t *directory="")
virtual void SetOwner(Bool_t enable=kTRUE)
Optimised list in which named objects can only be placed once.
virtual void Add(TObject *obj)
void SetName(const char *name)
virtual void SetOwner(Bool_t enable=kTRUE)
virtual void Add(TObject *obj)
virtual TObject * FindObject(const char *name) const
virtual void SetName(const char *name)
static void IndentLevel()
const char * Data() const
virtual const char * DirName(const char *pathname)
virtual Int_t Exec(const char *shellcmd)
virtual const char * BaseName(const char *pathname)
virtual TString GetFromPipe(const char *command)