Index: trunk/MagicSoft/Mars/mfileio/MRead.cc
===================================================================
--- trunk/MagicSoft/Mars/mfileio/MRead.cc	(revision 2296)
+++ trunk/MagicSoft/Mars/mfileio/MRead.cc	(revision 2298)
@@ -52,4 +52,23 @@
 }
 
+Int_t MRead::AddFiles(MDirIter &files)
+{
+    files.Reset();
+
+    Int_t rc = 0;
+
+    TString str;
+    while (!(str=files.Next()).IsNull())
+    {
+        const Int_t num = AddFile(str);
+        if (num<0)
+            *fLog << warn << "Warning: AddFile(\"" << str << "\") returned " << num << "... skipped." << endl;
+        else
+            rc += num;
+    }
+
+    return rc;
+}
+
 // --------------------------------------------------------------------------
 //
@@ -100,16 +119,2 @@
     return i!=0;
 }
-
-Int_t MRead::AddFiles(MDirIter &next)
-{
-    Int_t rc=0;
-    TString n;
-    while (!(n=next()).IsNull())
-    {
-        const Int_t num = AddFile(n);
-        if (num>0)
-            rc += num;
-    }
-    return rc;
-}
-
Index: trunk/MagicSoft/Mars/mfileio/MRead.h
===================================================================
--- trunk/MagicSoft/Mars/mfileio/MRead.h	(revision 2296)
+++ trunk/MagicSoft/Mars/mfileio/MRead.h	(revision 2298)
@@ -24,5 +24,5 @@
 
     virtual Int_t AddFile(const char *fname, Int_t entries=-1) { return -1; }
-    Int_t AddFiles(MDirIter &next);
+    Int_t AddFiles(MDirIter &dir);
 
     Bool_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
