Moved analyzeFile() to BaseFile where a much better place is (and duplicate
[core.git] / inc / classes / interfaces / iterator / class_SeekableWritableFileIterator.php
index abd1e583fbcf998cff8cea1441e780c73bf8ef19..263bba6887bef605933e8a9fbee5ec1bd5cd59cd 100644 (file)
@@ -54,6 +54,15 @@ interface SeekableWritableFileIterator extends SeekableIterator {
         * @return      $data   Data read from file
         */
        function read ($bytes);
+
+       /**
+        * Analyzes entries in index file. This will count all found (and valid)
+        * entries, mark invalid as damaged and count gaps ("fragmentation"). If
+        * only gaps are found, the file is considered as "virgin" (no entries).
+        *
+        * @return      void
+        */
+       function analyzeFile ();
 }
 
 // [EOF]