 
         guard let files = header.fileInfo?.files
             else { return [] }
+
+        var nonEmptyFileIndex = 0
 
         /// Index of currently opened folder in `streamInfo.coderInfo.folders`.
         var folderIndex = 0

                rawUnpackSize += fileSize

                fileInFolderCount += 1

                if fileInFolderCount > folder.numUnpackSubstreams { // If we read all files in folder...
                    // We need to check folder's unpacked size as well as its CRC32 (if it is available).

            let data: Data?

            if !file.isEmptyStream {
                // Without `SevenZipStreamInfo` and `SevenZipPackInfo` objects,
                //  we cannot find file data location in container.
                guard let streamInfo = header.mainStreams
